[SX126x] Fix signed comparison warning
This commit is contained in:
parent
a953475b9a
commit
1c0019ad18
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ int16_t SX126x::buildLRFHSSPacket(const uint8_t* in, size_t in_len, uint8_t* out
|
|||
|
||||
// interleave the payload into output buffer
|
||||
uint16_t step = 0;
|
||||
while(step * step < nb_bits) {
|
||||
while((size_t)(step * step) < nb_bits) {
|
||||
// probably the silliest sqrt() I ever saw
|
||||
step++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue