Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lmic/lmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ static ostime_t nextTx (ostime_t now) {
ostime_t mintime = now + /*8h*/sec2osticks(28800);
uint8_t band=0;
for( uint8_t bi=0; bi<4; bi++ ) {
if( (bmap & (1<<bi)) && mintime - LMIC.bands[bi].avail > 0 ) {
if( (bmap & (1<<bi)) && (ostimediff_t)(mintime - LMIC.bands[bi].avail) > 0 ) {
#if LMIC_DEBUG_LEVEL > 1
lmic_printf("%lu: Considering band %d, which is available at %lu\n", os_getTime(), bi, LMIC.bands[bi].avail);
#endif
Expand Down