mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-29 10:09:11 +03:00
automate migration from 1.9.x to 2.0 (in progress)
This commit is contained in:
11
src/system.h
11
src/system.h
@@ -45,16 +45,22 @@ class System {
|
||||
// commands
|
||||
static void restart();
|
||||
static void format(uuid::console::Shell & shell);
|
||||
|
||||
static void console_commands(Shell & shell, unsigned int context);
|
||||
static void mqtt_commands(const char * message);
|
||||
|
||||
static uint8_t free_mem();
|
||||
void syslog_init();
|
||||
static void upload_status(bool in_progress);
|
||||
static bool upload_status();
|
||||
|
||||
void syslog_init();
|
||||
|
||||
// heartbeat
|
||||
void set_heartbeat(bool system_heartbeat);
|
||||
void send_heartbeat();
|
||||
|
||||
void check_upgrade();
|
||||
|
||||
private:
|
||||
static uuid::log::Logger logger_;
|
||||
|
||||
@@ -99,6 +105,9 @@ class System {
|
||||
static int reset_counter_;
|
||||
uint32_t last_heartbeat_ = 0;
|
||||
|
||||
// OTA
|
||||
static bool upload_status_; // true if we're in the middle of a OTA firmware upload
|
||||
|
||||
// settings
|
||||
uint8_t tx_mode_;
|
||||
bool system_heartbeat_;
|
||||
|
||||
Reference in New Issue
Block a user