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