[SX128x] Fixed bug in ToA calculation for non-LoRa modems (#132)
This commit is contained in:
parent
f8c9b5d03a
commit
635c008e26
1 changed files with 1 additions and 1 deletions
|
@ -888,7 +888,7 @@ uint32_t SX128x::getTimeOnAir(size_t len) {
|
|||
return(((uint32_t(1) << sf) / _bwKhz) * N_symbol * 1000.0);
|
||||
|
||||
} else {
|
||||
return((len * 8) / _brKbps);
|
||||
return(((uint32_t)len * 8 * 1000) / _brKbps);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue