исправлено вкл/выкл таймера
This commit is contained in:
1 parent
30450e3c34
commit
b18a324c1e
1 file changed
+1
-2
@@ -2119,7 +2119,7 @@ void timerConfigForSend(uint16_t aFrequencyKHz)
|
||||
|
||||
void enableSendPWMByTimer()
|
||||
{
|
||||
// start timer with initialized channel
|
||||
// enable channel
|
||||
HAL_Timer32_Value_Clear(&ir_sender_htimer);
|
||||
HAL_Timer32_Channel_Enable(&ir_sender_htimer_channel);
|
||||
}
|
||||
@@ -2127,7 +2127,6 @@ void enableSendPWMByTimer()
|
||||
void disableSendPWMByTimer()
|
||||
{
|
||||
HAL_Timer32_Channel_Disable(&ir_sender_htimer_channel);
|
||||
digitalWriteFast(IR_SEND_PIN, 1);
|
||||
}
|
||||
# endif // defined(SEND_PWM_BY_TIMER)
|
||||
|
||||
|
||||
Reference in new issue
Block a user