mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-30 18:49:09 +03:00
add comments
This commit is contained in:
@@ -367,6 +367,7 @@ static void setup_commands(std::shared_ptr<Commands> const & commands) {
|
|||||||
commands->add_command(ShellContext::MAIN, CommandFlags::ADMIN, {F_(scan)}, [](Shell & shell, const std::vector<std::string> & arguments) {
|
commands->add_command(ShellContext::MAIN, CommandFlags::ADMIN, {F_(scan)}, [](Shell & shell, const std::vector<std::string> & arguments) {
|
||||||
EMSESP::scan_devices();
|
EMSESP::scan_devices();
|
||||||
});
|
});
|
||||||
|
|
||||||
/* removed scan deep
|
/* removed scan deep
|
||||||
commands->add_command(ShellContext::MAIN, CommandFlags::ADMIN, {F_(scan)}, {F_(deep_optional)}, [](Shell & shell, const std::vector<std::string> & arguments) {
|
commands->add_command(ShellContext::MAIN, CommandFlags::ADMIN, {F_(scan)}, {F_(deep_optional)}, [](Shell & shell, const std::vector<std::string> & arguments) {
|
||||||
if (arguments.empty()) {
|
if (arguments.empty()) {
|
||||||
@@ -384,6 +385,7 @@ static void setup_commands(std::shared_ptr<Commands> const & commands) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// read <deviceID> <type ID> [offset] [length]
|
// read <deviceID> <type ID> [offset] [length]
|
||||||
commands->add_command(ShellContext::MAIN,
|
commands->add_command(ShellContext::MAIN,
|
||||||
CommandFlags::USER,
|
CommandFlags::USER,
|
||||||
|
|||||||
@@ -204,7 +204,6 @@ class EMSbus {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// sets the flag for EMS bus connected
|
// sets the flag for EMS bus connected
|
||||||
static void last_bus_activity(uint32_t timestamp) {
|
static void last_bus_activity(uint32_t timestamp) {
|
||||||
// record the first time we connected to the BUS, as this will be our uptime
|
// record the first time we connected to the BUS, as this will be our uptime
|
||||||
|
|||||||
Reference in New Issue
Block a user