Skip to content

Commit eb03a69

Browse files
committed
Fixed define check
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
1 parent fcdec30 commit eb03a69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LoggerBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ void Logger::systemSleep(void) {
785785

786786
#if defined ARDUINO_ARCH_SAMD
787787

788-
#ifndef USE_TINYUSB&& defined(USBCON)
788+
#if not defined(USE_TINYUSB) && defined(USBCON)
789789
// Detach the USB, iff not using TinyUSB
790790
MS_DEEP_DBG(F("Detaching USB"));
791791
Serial.flush(); // wait for any outgoing messages on Serial = USB
@@ -896,7 +896,7 @@ void Logger::systemSleep(void) {
896896
SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
897897
#endif
898898
// Reattach the USB
899-
#ifndef USE_TINYUSB&& defined(USBCON)
899+
#if not defined(USE_TINYUSB) && defined(USBCON)
900900
USBDevice.init();
901901
USBDevice.attach();
902902
#endif

0 commit comments

Comments
 (0)