diff --git a/tasmota/xsns_83_neopool.ino b/tasmota/xsns_83_neopool.ino index 9c2194986..769b8ef82 100644 --- a/tasmota/xsns_83_neopool.ino +++ b/tasmota/xsns_83_neopool.ino @@ -58,7 +58,7 @@ #endif -#define NEOPOOL_READ_REGISTER 0x03 // Function code used to read register: Read Holding Registers +#define NEOPOOL_READ_REGISTER 0x04 // Function code used to read register: Read Input Registers #define NEOPOOL_WRITE_REGISTER 0x10 // Function code used to write register: Write Multiple Registers #define NEOPOOL_READ_TIMEOUT 25 // read data timeout in ms @@ -717,7 +717,7 @@ uint8_t NeoPoolReadRegister(uint16_t addr, uint16_t *data, uint16_t cnt) *data = 0; #ifdef DEBUG_TASMOTA_SENSOR - AddLog_P(LOG_LEVEL_DEBUG, PSTR("NEO: NeoPoolReadRegister(0x%04X, %p, %d)"), addr, data, cnt); + AddLog(LOG_LEVEL_DEBUG, PSTR("NEO: NeoPoolReadRegister(0x%04X, %p, %d)"), addr, data, cnt); #endif // DEBUG_TASMOTA_SENSOR NeoPoolModbus->Send(NEOPOOL_MODBUS_ADDRESS, NEOPOOL_READ_REGISTER, addr, cnt); timeoutMS = millis() + cnt * NEOPOOL_READ_TIMEOUT; // Max delay before we timeout @@ -761,7 +761,7 @@ uint8_t NeoPoolWriteRegister(uint16_t addr, uint16_t *data, uint16_t cnt) uint32_t timeoutMS; #ifdef DEBUG_TASMOTA_SENSOR - AddLog_P(LOG_LEVEL_DEBUG, PSTR("NEO: NeoPoolWriteRegister(0x%04X, %p, %d)"), addr, data, cnt); + AddLog(LOG_LEVEL_DEBUG, PSTR("NEO: NeoPoolWriteRegister(0x%04X, %p, %d)"), addr, data, cnt); #endif // DEBUG_TASMOTA_SENSOR neopool_poll = false; numbytes = 7+cnt*2; @@ -1086,19 +1086,19 @@ void NeoPoolShow(bool json) * * Sensor83 3 {} * read/write register bit (bit=0..15, data=0|1) - * read if param is omitted otherwise set to new + * read if is omitted, otherwise set to new * * Sensor83 4 {} * get/set manual filtration (state=0|1) - * get filtration state if param is omitted otherwise set new state + * get filtration state if is omitted, otherwise set new state * * Sensor83 5 {} * get/set filtration mode (mode=0..4|13) - * get mode if param is omitted otherwise set new mode + * get mode if is omitted, otherwise set new mode * * Sensor83 6 {