mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
autoformatting
This commit is contained in:
@@ -651,7 +651,7 @@ bool AnalogSensor::get_value_info(JsonObject output, const char * cmd, const int
|
|||||||
// this is for a specific sensor
|
// this is for a specific sensor
|
||||||
// make a copy of the string command for parsing, and lowercase it
|
// make a copy of the string command for parsing, and lowercase it
|
||||||
char sensor_name[COMMAND_MAX_LENGTH] = {'\0'};
|
char sensor_name[COMMAND_MAX_LENGTH] = {'\0'};
|
||||||
char * attribute_s = nullptr;
|
char * attribute_s = nullptr;
|
||||||
strlcpy(sensor_name, Helpers::toLower(cmd).c_str(), sizeof(sensor_name));
|
strlcpy(sensor_name, Helpers::toLower(cmd).c_str(), sizeof(sensor_name));
|
||||||
|
|
||||||
// check specific attribute to fetch instead of the complete record
|
// check specific attribute to fetch instead of the complete record
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ bool TemperatureSensor::get_value_info(JsonObject output, const char * cmd, cons
|
|||||||
// this is for a specific sensor
|
// this is for a specific sensor
|
||||||
// make a copy of the string command for parsing, and lowercase it
|
// make a copy of the string command for parsing, and lowercase it
|
||||||
char sensor_name[COMMAND_MAX_LENGTH] = {'\0'};
|
char sensor_name[COMMAND_MAX_LENGTH] = {'\0'};
|
||||||
char * attribute_s = nullptr;
|
char * attribute_s = nullptr;
|
||||||
strlcpy(sensor_name, Helpers::toLower(cmd).c_str(), sizeof(sensor_name));
|
strlcpy(sensor_name, Helpers::toLower(cmd).c_str(), sizeof(sensor_name));
|
||||||
|
|
||||||
// check for a specific attribute to fetch instead of the complete record
|
// check for a specific attribute to fetch instead of the complete record
|
||||||
|
|||||||
Reference in New Issue
Block a user