Start working on a Adafruit Feather M0 WiFi w/ATWINC1500 firmware (with slight update to HanReader interface)

This commit is contained in:
Vegar Westerlund
2019-05-11 21:34:11 +02:00
parent 09caae4093
commit 9a2995667b
8 changed files with 463 additions and 20 deletions

View File

@@ -67,8 +67,11 @@ void setup()
if (!ap.isActivated)
{
setupWiFi();
hanReader.setup(&Serial, 2400, SERIAL_8E1, 0);
Serial.begin(2400, SERIAL_8E1);
while (!Serial);
hanReader.setup(&Serial, debugger);
// Compensate for the known Kaifa bug
hanReader.compensateFor09HeaderBug = (ap.config.meterType == 1);
}