Added the message wordmap and worked on the OTA. Basically functional, but only checks the difference in version, not the actual version number.
LED matrix got row and column write actions
This commit is contained in:
@@ -64,9 +64,27 @@ class ota
|
||||
// -----------------------------------------------------------------------------------------------------------------
|
||||
public:
|
||||
|
||||
static const uint32_t checkInterval_ms = 10000;
|
||||
typedef enum
|
||||
{
|
||||
OTA_STATUS_IDLE = 0,
|
||||
OTA_STATUS_DOWNLOAD,
|
||||
OTA_STATUS_VERIFY,
|
||||
OTA_STATUS_WRITE,
|
||||
OTA_STATUS_UPDATE,
|
||||
OTA_STATUS_SUCCESS,
|
||||
OTA_STATUS_FAIL,
|
||||
OTA_STATUS_RESTART
|
||||
}UpdateStatus_t;
|
||||
|
||||
typedef void (*updateStatusCallback)(int);
|
||||
struct statusCallbackData
|
||||
{
|
||||
UpdateStatus_t status;
|
||||
int percentage;
|
||||
};
|
||||
|
||||
static const uint32_t checkInterval_ms = 60000;
|
||||
|
||||
typedef void (*updateStatusCallback)(struct statusCallbackData* status);
|
||||
static updateStatusCallback usCallback;
|
||||
|
||||
// Class Constructor
|
||||
|
||||
Reference in New Issue
Block a user