minor: don't automatically capture after sending IR
This commit is contained in:
parent
9fddbd4449
commit
7121f8b541
3
main.c
3
main.c
|
@ -278,8 +278,6 @@ static void nec_transmit(uint32_t code)
|
||||||
}
|
}
|
||||||
nec_pulse(22, true); // end pulse, 560 us
|
nec_pulse(22, true); // end pulse, 560 us
|
||||||
rim(); // re-enable interrupts
|
rim(); // re-enable interrupts
|
||||||
|
|
||||||
timer_ir_in(); // go back to IR capture
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
|
@ -474,6 +472,7 @@ void main(void)
|
||||||
}
|
}
|
||||||
if (code_valid) {
|
if (code_valid) {
|
||||||
nec_transmit(code); // transmit code
|
nec_transmit(code); // transmit code
|
||||||
|
timer_ir_in(); // go back to IR capture
|
||||||
puts("\r\ncode transmitted\r\n");
|
puts("\r\ncode transmitted\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue