File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -94,18 +94,18 @@ void ICACHE_RAM_ATTR pwm_timer_isr(){
94
94
static uint16_t steps [17 ];
95
95
static uint32_t masks [17 ];
96
96
if (current_step < stepcount ){
97
- T1L = (pwm_steps [current_step + 1 ] * pwm_multiplier );
98
- TEIE |= TEIE1 ;
99
- if (masks [current_step ] & 0xFFFF ) GPOC = masks [current_step ] & 0xFFFF ;
97
+ T1L = (pwm_steps [current_step + 1 ] * pwm_multiplier );
98
+ TEIE |= TEIE1 ;
99
+ if (masks [current_step ] & 0xFFFF ) GPOC = masks [current_step ] & 0xFFFF ;
100
100
if (masks [current_step ] & 0x10000 ) GP16O = 0 ;
101
101
current_step ++ ;
102
102
} else {
103
103
current_step = 0 ;
104
104
stepcount = 0 ;
105
105
if (pwm_mask == 0 ) return ;
106
- T1L = (pwm_steps [current_step + 1 ] * pwm_multiplier );
107
- TEIE |= TEIE1 ;
108
- if (pwm_mask & 0xFFFF ) GPOS = pwm_mask & 0xFFFF ;
106
+ T1L = (pwm_steps [current_step + 1 ] * pwm_multiplier );
107
+ TEIE |= TEIE1 ;
108
+ if (pwm_mask & 0xFFFF ) GPOS = pwm_mask & 0xFFFF ;
109
109
if (pwm_mask & 0x10000 ) GP16O = 1 ;
110
110
stepcount = pwm_steps_len ;
111
111
memcpy (steps , pwm_steps , (stepcount + 1 ) * 2 );
You can’t perform that action at this time.
0 commit comments