mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59: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;
|
||||
}
|
||||
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()));
|
||||
return;
|
||||
}
|
||||
@@ -741,7 +741,7 @@ void Console::load_system_commands(unsigned int context) {
|
||||
if (arguments.size() == 2) {
|
||||
if (Helpers::value2float(arguments.back().c_str(), val)) {
|
||||
offset = (10 * val);
|
||||
EMSESP::dallassensor_.add_name(arguments.front().c_str(), "", offset);
|
||||
EMSESP::dallassensor_.update(arguments.front().c_str(), "", offset);
|
||||
return;
|
||||
}
|
||||
} else if (arguments.size() == 3) {
|
||||
@@ -749,7 +749,7 @@ void Console::load_system_commands(unsigned int context) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user