mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-07-17 08:02:52 +02:00
Update to latest version of mcci-catena/arduino-lmic library
This commit is contained in:
7
src/lmic/oslmic.c
Executable file → Normal file
7
src/lmic/oslmic.c
Executable file → Normal file
@ -71,8 +71,11 @@ static int unlinkjob (osjob_t** pnext, osjob_t* job) {
|
||||
// clear scheduled job
|
||||
void os_clearCallback (osjob_t* job) {
|
||||
hal_disableIRQs();
|
||||
// ttn-esp32 change: suppress error 'value computed is not used'
|
||||
int __attribute__((unused)) res = unlinkjob(&OS.scheduledjobs, job) || unlinkjob(&OS.runnablejobs, job);
|
||||
|
||||
// if it's not in the scheduled jobs, look in the runnable...
|
||||
if (! unlinkjob(&OS.scheduledjobs, job))
|
||||
unlinkjob(&OS.runnablejobs, job);
|
||||
|
||||
hal_enableIRQs();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user