mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2024-10-01 03:15:39 -04:00
Fixed broken CSMA random value
This commit is contained in:
parent
6f62a5394b
commit
dce3b25d64
@ -1214,7 +1214,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!dcd) {
|
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) {
|
if (csma_p >= csma_r) {
|
||||||
flushQueue();
|
flushQueue();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user