Browse Source

sns: log typo

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
cb4c1a12ff
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/sensor.cpp

+ 1
- 1
code/espurna/sensor.cpp View File

@ -1444,7 +1444,7 @@ bool _sensorApiTryParseMagnitudeIndex(const char* p, unsigned char type, unsigne
char* endp { nullptr };
const unsigned long result { strtoul(p, &endp, 10) };
if ((endp == p) || (*endp != '\0') || (result >= sensor_magnitude_t::counts(type))) {
DEBUG_MSG_P(PSTR("[RELAY] Invalid magnitude ID (%s)\n"), p);
DEBUG_MSG_P(PSTR("[SENSOR] Invalid magnitude ID (%s)\n"), p);
return false;
}


Loading…
Cancel
Save