[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
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
]
|
||||
}
|
||||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"platformio.platformio-ide"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue