diff --git a/Firmware/.vscode/extensions.json b/Firmware/.vscode/extensions.json index 272828b..0f0d740 100644 --- a/Firmware/.vscode/extensions.json +++ b/Firmware/.vscode/extensions.json @@ -1,7 +1,7 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ] -} \ No newline at end of file +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ] +} diff --git a/Firmware/platformio.ini b/Firmware/platformio.ini index b19feed..d7cdf60 100644 --- a/Firmware/platformio.ini +++ b/Firmware/platformio.ini @@ -6,7 +6,6 @@ upload_protocol = stk500v2 upload_flags = -P/dev/ttyACM0 -b$UPLOAD_SPEED - -B10 upload_speed = 19200 monitor_speed = 9600 board_build.f_cpu = 1000000L \ No newline at end of file diff --git a/Firmware/src/main.cpp b/Firmware/src/main.cpp index 715f597..9099b4b 100644 --- a/Firmware/src/main.cpp +++ b/Firmware/src/main.cpp @@ -219,7 +219,7 @@ void loop() #endif #ifdef RF_RFM69 - radio.send(RFM69_GATEWAY, &data, sizeof(data)); + radio.sendWithRetry(RFM69_GATEWAY, &data, sizeof(data), 3, random(150,400)); radio.sleep(); #endif