File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ void hal_pollPendingIRQs_helper();
173
173
void hal_processPendingIRQs (void );
174
174
175
175
/// \brief check for any pending interrupts: stub if interrupts are enabled.
176
- static void inline hal_pollPendingIRQs (void )
176
+ static inline void hal_pollPendingIRQs (void )
177
177
{
178
178
#if !defined(LMIC_USE_INTERRUPTS )
179
179
hal_pollPendingIRQs_helper ();
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ int LMIC_findNextChannel(
108
108
memcpy (pShuffleMask , pEnableMask , nEntries * sizeof (* pShuffleMask ));
109
109
nSet16 = sidewaysSum16 (pShuffleMask , nEntries );
110
110
} else {
111
- // don't try to skip the last channel becuase it can't be chosen.
111
+ // don't try to skip the last channel because it can't be chosen.
112
112
lastChannel = -1 ;
113
113
}
114
114
@@ -121,7 +121,7 @@ int LMIC_findNextChannel(
121
121
// the last channel bit. Post condition: if we really clered a bit,
122
122
// saveLastChannelVal will be non-zero.
123
123
saveLastChannelVal = 0 ;
124
- if (nSet16 > 16 && lastChannel >= 0 && lastChannel <= nEntries * 16 ) {
124
+ if (nSet16 > 16 && lastChannel >= 0 && lastChannel <= ( int )( nEntries * 16 ) ) {
125
125
uint16_t const saveLastChannelMask = (1 << (lastChannel & 0xF ));
126
126
127
127
saveLastChannelVal = pShuffleMask [lastChannel >> 4 ] & saveLastChannelMask ;
You can’t perform that action at this time.
0 commit comments