mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 09:09:25 +03:00
cleancode changes from cppcheck and cpplint
This commit is contained in:
@@ -97,8 +97,6 @@ void DS18::loop() {
|
||||
char * DS18::getDeviceString(char * buffer, unsigned char index) {
|
||||
uint8_t size = 128;
|
||||
if (index < _count) {
|
||||
uint8_t * address = _devices[index].address;
|
||||
|
||||
unsigned char chip_id = chip(index);
|
||||
if (chip_id == DS18_CHIP_DS18S20) {
|
||||
strlcpy(buffer, "DS18S20", size);
|
||||
@@ -112,7 +110,8 @@ char * DS18::getDeviceString(char * buffer, unsigned char index) {
|
||||
strlcpy(buffer, "Unknown", size);
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
uint8_t * address = _devices[index].address;
|
||||
char a[30] = {0};
|
||||
snprintf(a,
|
||||
sizeof(a),
|
||||
|
||||
Reference in New Issue
Block a user