Compilation fix
This commit is contained in:
@@ -292,7 +292,7 @@ const char * FrskyDeviceFirmwareUpdate::uploadFile(const char * filename)
|
|||||||
|
|
||||||
const char * ext = getFileExtension(filename);
|
const char * ext = getFileExtension(filename);
|
||||||
if (ext && !strcasecmp(ext, UPDATE_FIRMWARE_EXT)) {
|
if (ext && !strcasecmp(ext, UPDATE_FIRMWARE_EXT)) {
|
||||||
FrSkyFirmwareInformation *information = (FrSkyFirmwareInformation *) buffer;
|
// FrSkyFirmwareInformation *information = (FrSkyFirmwareInformation *) buffer;
|
||||||
if (f_read(&file, buffer, sizeof(FrSkyFirmwareInformation), &count) != FR_OK || count != sizeof(FrSkyFirmwareInformation)) {
|
if (f_read(&file, buffer, sizeof(FrSkyFirmwareInformation), &count) != FR_OK || count != sizeof(FrSkyFirmwareInformation)) {
|
||||||
f_close(&file);
|
f_close(&file);
|
||||||
return "Format error";
|
return "Format error";
|
||||||
|
|||||||
Reference in New Issue
Block a user