Skip to content

Commit

Permalink
timeslot: set force-irq to timer0, to avoid crash during stop or rest…
Browse files Browse the repository at this point in the history
…art of ts
  • Loading branch information
trond-snekvik committed Nov 24, 2015
1 parent 0107d51 commit fd0a5b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nRF51/rbc_mesh/src/timeslot_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ void timeslot_extend(uint32_t extra_time_us)
void timeslot_stop(void)
{
g_timeslot_forced_command = TS_FORCED_COMMAND_STOP;
NVIC_SetPendingIRQ(RADIO_IRQn);
NVIC_SetPendingIRQ(TIMER0_IRQn);
}

void timeslot_restart(void)
{
g_timeslot_forced_command = TS_FORCED_COMMAND_RESTART;
NVIC_SetPendingIRQ(RADIO_IRQn);
NVIC_SetPendingIRQ(TIMER0_IRQn);
}

uint64_t timeslot_get_global_time(void)
Expand Down

0 comments on commit fd0a5b2

Please sign in to comment.