stop receiving command in master mode

This commit is contained in:
King Kévin 2022-10-19 13:57:09 +02:00
parent 74312ca428
commit b9fa7d77d0
1 changed files with 1 additions and 0 deletions

1
main.c
View File

@ -561,6 +561,7 @@ void main(void)
nec_transmit(code); // transmit code
if (!master) {
master = true; // switch to master mode
IRM_ON_PORT->ODR.reg &= ~IRM_ON_PIN; // switch IR demodulator off
puts("\r\nmaster set\r\n");
}
}