mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-12-30 09:56:14 -05:00
Fixed broken CSMA random value
This commit is contained in:
parent
6f62a5394b
commit
dce3b25d64
@ -1214,7 +1214,7 @@ void loop() {
|
||||
}
|
||||
|
||||
if (!dcd) {
|
||||
uint8_t csma_r = (uint8_t)random(20); // updated to increase bitrate: todo check
|
||||
uint8_t csma_r = (uint8_t)random(256);
|
||||
if (csma_p >= csma_r) {
|
||||
flushQueue();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user