mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 17:19:08 +03:00
implement txenabled system command - #2850
This commit is contained in:
@@ -696,6 +696,7 @@ bool Helpers::value2string(const char * value, std::string & value_s) {
|
||||
|
||||
// checks to see if a string (usually a command or payload cmd) looks like a boolean
|
||||
// on, off, true, false, 1, 0
|
||||
// uses translated words for on/off
|
||||
bool Helpers::value2bool(const char * value, bool & value_b) {
|
||||
if ((value == nullptr) || (strlen(value) == 0)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user