Skip to content

Commit 6e301c4

Browse files
committed
Don't stop debugger USART to prevent dummy character in output after power down
1 parent 9e9f575 commit 6e301c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/low_power.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#include "low_power.h"
2+
13
#include "led_ctrl.h"
24
#include "log.h"
3-
#include "low_power.h"
45
#include "lte.h"
56
#include "sequans_controller.h"
67

@@ -391,7 +392,6 @@ static void powerDownPeripherals(void) {
391392

392393
// Debugger, add pull-ups on pins for USART TX & RX, as well as LED pin
393394

394-
DEBUGGER_USART.CTRLB &= ~(USART_RXEN_bm | USART_TXEN_bm);
395395
setPinLowPowerMode(DEBUGGER_TX_PIN);
396396
setPinLowPowerMode(DEBUGGER_RX_PIN);
397397
setPinLowPowerMode(DEBUGGER_LED_PIN);
@@ -444,8 +444,6 @@ static void powerUpPeripherals() {
444444

445445
SW0_PORT.PIN2CTRL &= ~PORT_PULLUPEN_bm;
446446

447-
DEBUGGER_USART.CTRLB |= USART_TXEN_bm | USART_RXEN_bm;
448-
449447
// I2C
450448
setPinNormalOutputMode(I2C0_SDA_PIN);
451449
setPinNormalOutputMode(I2C0_SCL_PIN);

0 commit comments

Comments
 (0)