Skip to content

Commit

Permalink
Fixed define check
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Aug 26, 2024
1 parent fcdec30 commit eb03a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LoggerBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ void Logger::systemSleep(void) {

#if defined ARDUINO_ARCH_SAMD

#ifndef USE_TINYUSB&& defined(USBCON)
#if not defined(USE_TINYUSB) && defined(USBCON)
// Detach the USB, iff not using TinyUSB
MS_DEEP_DBG(F("Detaching USB"));
Serial.flush(); // wait for any outgoing messages on Serial = USB
Expand Down Expand Up @@ -896,7 +896,7 @@ void Logger::systemSleep(void) {
SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
#endif
// Reattach the USB
#ifndef USE_TINYUSB&& defined(USBCON)
#if not defined(USE_TINYUSB) && defined(USBCON)
USBDevice.init();
USBDevice.attach();
#endif
Expand Down

0 comments on commit eb03a69

Please sign in to comment.