rcommand.cpp bugfix get_time()
This commit is contained in:
1 parent
658402976b
commit
a676658977
1 file changed
+1
-5
+1
-5
@@ -274,13 +274,9 @@ void get_bme(uint8_t val[]) {
|
||||
|
||||
void get_time(uint8_t val[]) {
|
||||
ESP_LOGI(TAG, "Remote command: get time");
|
||||
#ifdef HAS_BME
|
||||
payload.reset();
|
||||
payload.addtime(now());
|
||||
payload.addTime(now());
|
||||
SendPayload(TIMEPORT, prio_high);
|
||||
#else
|
||||
ESP_LOGW(TAG, "BME680 sensor not supported");
|
||||
#endif
|
||||
};
|
||||
|
||||
// assign previously defined functions to set of numeric remote commands
|
||||
|
||||
Reference in new issue
Block a user