mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix sonar compile
This commit is contained in:
@@ -379,7 +379,9 @@ std::string Helpers::data_to_hex(const uint8_t * data, const uint8_t length) {
|
||||
return "<empty>";
|
||||
}
|
||||
|
||||
char str[length * 3] = {0};
|
||||
char str[length * 3];
|
||||
memset(str, 0, length * sizeof(char));
|
||||
|
||||
char buffer[4];
|
||||
char * p = &str[0];
|
||||
for (uint8_t i = 0; i < length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user