OTA improved (LED flashing, faster buffer closing at end of write)
This commit is contained in:
1 parent
9fa2f974c3
commit
af0f3a78fd
4 files changed
+48
-15
No files matched your search
+1
-1
@@ -11,7 +11,7 @@
|
||||
#include <BintrayClient.h>
|
||||
#include <string>
|
||||
|
||||
bool do_ota_update();
|
||||
int do_ota_update();
|
||||
void start_ota_update();
|
||||
int version_compare(const String v1, const String v2);
|
||||
void display(const uint8_t row, const std::string status,
|
||||
|
||||
+4
-1
@@ -41,7 +41,7 @@ class UpdateClass {
|
||||
Call this to check the space needed for the update
|
||||
Will return false if there is not enough space
|
||||
*/
|
||||
bool begin(size_t size=UPDATE_SIZE_UNKNOWN, int command = U_FLASH);
|
||||
bool begin(size_t size=UPDATE_SIZE_UNKNOWN, int command = U_FLASH, int ledPin = -1, uint8_t ledOn = LOW);
|
||||
|
||||
/*
|
||||
Writes a buffer to the flash and increments the address
|
||||
@@ -174,6 +174,9 @@ class UpdateClass {
|
||||
|
||||
String _target_md5;
|
||||
MD5Builder _md5;
|
||||
|
||||
int _ledPin;
|
||||
uint8_t _ledOn;
|
||||
};
|
||||
|
||||
extern UpdateClass Update;
|
||||
|
||||
Reference in new issue
Block a user