autoformatting

This commit is contained in:
Proddy
2024-03-10 21:15:52 +01:00
parent f1f9bacf76
commit c1ae0e76c8
2 changed files with 2 additions and 2 deletions

View File

@@ -651,7 +651,7 @@ bool AnalogSensor::get_value_info(JsonObject output, const char * cmd, const int
// this is for a specific sensor
// make a copy of the string command for parsing, and lowercase it
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));
// check specific attribute to fetch instead of the complete record