From 5523a7b8b90c2873c552ab2fb10c83f7912b5405 Mon Sep 17 00:00:00 2001 From: Josh Weberruss Date: Sun, 13 Nov 2022 12:30:13 +1100 Subject: [PATCH] Fix UART unlisten calls so they clear the interrupt enable bit instead of setting it --- esp-hal-common/src/serial.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp-hal-common/src/serial.rs b/esp-hal-common/src/serial.rs index eabd4a10dc5..aff01d8452b 100644 --- a/esp-hal-common/src/serial.rs +++ b/esp-hal-common/src/serial.rs @@ -361,7 +361,7 @@ where self.uart .register_block() .int_ena - .modify(|_, w| w.at_cmd_char_det_int_ena().set_bit()); + .modify(|_, w| w.at_cmd_char_det_int_ena().clear_bit()); } /// Listen for TX-DONE interrupts @@ -377,7 +377,7 @@ where self.uart .register_block() .int_ena - .modify(|_, w| w.tx_done_int_ena().set_bit()); + .modify(|_, w| w.tx_done_int_ena().clear_bit()); } /// Listen for RX-FIFO-FULL interrupts @@ -393,7 +393,7 @@ where self.uart .register_block() .int_ena - .modify(|_, w| w.rxfifo_full_int_ena().set_bit()); + .modify(|_, w| w.rxfifo_full_int_ena().clear_bit()); } /// Checks if AT-CMD interrupt is set