mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-30 21:51:52 +00:00
Set correct parity for Kamstrup
This commit is contained in:
@@ -88,7 +88,11 @@ void setup()
|
||||
{
|
||||
setupWiFi();
|
||||
// Configure uart for AMS data
|
||||
Serial.begin(2400, SERIAL_8E1);
|
||||
if(ap.config.meterType == 3) {
|
||||
Serial.begin(2400, SERIAL_8N1);
|
||||
} else {
|
||||
Serial.begin(2400, SERIAL_8E1);
|
||||
}
|
||||
while (!Serial);
|
||||
|
||||
hanReader.setup(&Serial, debugger);
|
||||
|
||||
Reference in New Issue
Block a user