reaper7 / SDM_Energy_Meter

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

remove hardcoded baudrate in examples #54

Closed bluemanos closed 3 years ago

bluemanos commented 3 years ago

I spend a few hours to get the examples working and finally I noticed that even if I setup the baud rate value in SDM_Config_User.h file then it is hardcoded in examples.

Lets avoid the mistake in the future in other users :)

reaper7 commented 3 years ago

default SDM_UART_BAUD is defined here: https://github.com/reaper7/SDM_Energy_Meter/blob/master/SDM.h#L21 so... all your changes are ok except uncommenting SDM_UART_BAUD in SDM_Config_User.h

bluemanos commented 3 years ago

@reaper7 done and commits squashed :) sorry for so long response.

reaper7 commented 3 years ago

ok, tnx :)