mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
update calls to dallas library
This commit is contained in:
@@ -732,7 +732,7 @@ void Console::load_system_commands(unsigned int context) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arguments.size() == 1) {
|
if (arguments.size() == 1) {
|
||||||
EMSESP::dallassensor_.add_name(arguments.front().c_str(), "", 0);
|
EMSESP::dallassensor_.update(arguments.front().c_str(), "", 0);
|
||||||
// shell.println(EMSESP::dallassensor_.get_name(arguments.front().c_str()));
|
// shell.println(EMSESP::dallassensor_.get_name(arguments.front().c_str()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -741,7 +741,7 @@ void Console::load_system_commands(unsigned int context) {
|
|||||||
if (arguments.size() == 2) {
|
if (arguments.size() == 2) {
|
||||||
if (Helpers::value2float(arguments.back().c_str(), val)) {
|
if (Helpers::value2float(arguments.back().c_str(), val)) {
|
||||||
offset = (10 * val);
|
offset = (10 * val);
|
||||||
EMSESP::dallassensor_.add_name(arguments.front().c_str(), "", offset);
|
EMSESP::dallassensor_.update(arguments.front().c_str(), "", offset);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (arguments.size() == 3) {
|
} else if (arguments.size() == 3) {
|
||||||
@@ -749,7 +749,7 @@ void Console::load_system_commands(unsigned int context) {
|
|||||||
offset = (10 * val);
|
offset = (10 * val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EMSESP::dallassensor_.add_name(arguments.front().c_str(), arguments[1].c_str(), offset);
|
EMSESP::dallassensor_.update(arguments.front().c_str(), arguments[1].c_str(), offset);
|
||||||
});
|
});
|
||||||
|
|
||||||
EMSESPShell::commands
|
EMSESPShell::commands
|
||||||
|
|||||||
Reference in New Issue
Block a user