Skip to content
Snippets Groups Projects
Commit 714ab29b authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug in the scheduler module.

parent 397d35f1
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ void darwin_sch_set_pulse(unsigned short int channel_id,unsigned short int pulse ...@@ -67,7 +67,7 @@ void darwin_sch_set_pulse(unsigned short int channel_id,unsigned short int pulse
if(running==0x00) if(running==0x00)
{ {
if(darwin_scheduler.channels[channel_id].enabled==0x00) if(darwin_scheduler.channels[scheduler_get_id(channel_id)].enabled==0x00)
{ {
out_comp_config.OCMode = TIM_OCMODE_TIMING; out_comp_config.OCMode = TIM_OCMODE_TIMING;
capture = HAL_TIM_ReadCapturedValue(&darwin_sch_timer_handle,channel_id); capture = HAL_TIM_ReadCapturedValue(&darwin_sch_timer_handle,channel_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment