reaper7 / SDM_Energy_Meter

reading SDM72 SDM120 SDM220 SDM230 SDM630 modbus energy meters from arduino (esp8266, esp32, avr)
247 stars 97 forks source link

SDM_MAX_DELAY too short #83

Open geronet1 opened 1 year ago

geronet1 commented 1 year ago

`#if !defined ( WAITING_TURNAROUND_DELAY )

define WAITING_TURNAROUND_DELAY 500 // time in ms to wait for process current request

endif

if !defined ( RESPONSE_TIMEOUT )

define RESPONSE_TIMEOUT 10 // time in ms to wait for return response from all devices before next request

endif

if !defined ( SDM_MIN_DELAY )

define SDM_MIN_DELAY 1 // minimum value (in ms) for WAITING_TURNAROUND_DELAY and RESPONSE_TIMEOUT

endif

if !defined ( SDM_MAX_DELAY )

define SDM_MAX_DELAY 20 // maximum value (in ms) for WAITING_TURNAROUND_DELAY and RESPONSE_TIMEOUT

endif`

doesn't make sense: WAITING_TURNAROUND_DELAY is 500 ms and the maximum is 20 with SDM_MAX_DELAY