mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
validate board gpios in system
This commit is contained in:
@@ -133,6 +133,7 @@ class System {
|
||||
void network_init(bool refresh);
|
||||
void button_init(bool refresh);
|
||||
void commands_init();
|
||||
void uart_init(bool refresh);
|
||||
|
||||
void systemStatus(uint8_t status_code);
|
||||
uint8_t systemStatus();
|
||||
@@ -145,6 +146,10 @@ class System {
|
||||
|
||||
static bool readCommand(const char * data);
|
||||
|
||||
void dallas_gpio(uint8_t gpio) {
|
||||
dallas_gpio_ = gpio;
|
||||
}
|
||||
|
||||
bool telnet_enabled() {
|
||||
return telnet_enabled_;
|
||||
}
|
||||
@@ -413,6 +418,7 @@ class System {
|
||||
uint8_t pbutton_gpio_;
|
||||
uint8_t rx_gpio_;
|
||||
uint8_t tx_gpio_;
|
||||
uint8_t tx_mode_;
|
||||
uint8_t dallas_gpio_;
|
||||
bool telnet_enabled_;
|
||||
bool syslog_enabled_;
|
||||
|
||||
Reference in New Issue
Block a user