[Firmware] Add Retry for RFM69
This commit is contained in:
parent
ed1114488c
commit
10b2a5f861
14
Firmware/.vscode/extensions.json
vendored
14
Firmware/.vscode/extensions.json
vendored
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
// for the documentation about the extensions.json format
|
// for the documentation about the extensions.json format
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"platformio.platformio-ide"
|
"platformio.platformio-ide"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@ upload_protocol = stk500v2
|
||||||
upload_flags =
|
upload_flags =
|
||||||
-P/dev/ttyACM0
|
-P/dev/ttyACM0
|
||||||
-b$UPLOAD_SPEED
|
-b$UPLOAD_SPEED
|
||||||
-B10
|
|
||||||
upload_speed = 19200
|
upload_speed = 19200
|
||||||
monitor_speed = 9600
|
monitor_speed = 9600
|
||||||
board_build.f_cpu = 1000000L
|
board_build.f_cpu = 1000000L
|
|
@ -219,7 +219,7 @@ void loop()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RF_RFM69
|
#ifdef RF_RFM69
|
||||||
radio.send(RFM69_GATEWAY, &data, sizeof(data));
|
radio.sendWithRetry(RFM69_GATEWAY, &data, sizeof(data), 3, random(150,400));
|
||||||
radio.sleep();
|
radio.sleep();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue