Bsongis/autoupdate (#6521)

Auto update internal chips at boot if /FIRMWARE/autoupdate.frsk is present on SD
This commit is contained in:
Bertrand Songis
2019-06-21 08:52:48 +02:00
committed by GitHub
parent 8cdcf565c2
commit dbec79e10f
10 changed files with 99 additions and 21 deletions
+3 -2
View File
@@ -22,6 +22,7 @@
#define _FRSKY_FIRMWARE_UPDATE_H_
#include "dataconstants.h"
#include "definitions.h"
#include "frsky_pxx2.h"
enum FrskyFirmwareProductFamily {
@@ -65,7 +66,7 @@ class FrskyDeviceFirmwareUpdate {
module(module) {
}
void flashFirmware(const char * filename);
const char * flashFirmware(const char * filename);
protected:
uint8_t state = SPORT_IDLE;
@@ -96,7 +97,7 @@ class FrskyChipFirmwareUpdate {
{
}
void flashFirmware(const char * filename);
const char * flashFirmware(const char * filename, bool wait = true);
protected:
uint8_t crc;