Fix Bug on KNX Driver

-Solved BUG on Console LOG that informs incorrect sensor name. This also made that if humidity was selected, it made Tasmota Crash.
This commit is contained in:
Adrian Scillato 2018-04-29 02:04:25 -03:00 committed by GitHub
parent 44598e5fc4
commit bbf9b8432a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ void KnxSensor(byte sensor_type, float value)
knx.write_2byte_float(KNX_addr, value);
snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_KNX "%s " D_SENT_TO " %d.%d.%d "),
device_param_ga[sensor_type],
device_param_ga[sensor_type-1],
KNX_addr.ga.area, KNX_addr.ga.line, KNX_addr.ga.member);
AddLog(LOG_LEVEL_INFO);