Fixed procedure for sending IrDA commands, disabled interrupts for better stability (#329)

* Disable irq when send command
This commit is contained in:
DrZlo13
2021-02-09 21:21:05 +10:00
committed by GitHub
parent 446ba55b08
commit 5dbe2983aa
3 changed files with 14 additions and 2 deletions
-2
View File
@@ -139,7 +139,6 @@ void render_packet(Canvas* canvas, State* state) {
void input_packet(AppEvent* event, State* state) {
if(event->value.input.input == InputOk) {
if(event->value.input.state) {
vTaskSuspendAll();
switch(state->packets[state->packet_id].protocol) {
case IRDA_NEC:
ir_nec_send(
@@ -154,7 +153,6 @@ void input_packet(AppEvent* event, State* state) {
default:
break;
}
xTaskResumeAll();
}
}