Browse Source

Parenthesize IS_SD_PRINTING defensively

Yuri D'Elia 2 years ago
parent
commit
001876a807
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/cmdqueue.cpp

+ 1 - 1
Firmware/cmdqueue.cpp

@@ -444,7 +444,7 @@ void get_command()
             allow_when_stopped = true;
 
         // Handle the USB timer
-        if ((*cmd_start == 'G') && !IS_SD_PRINTING)
+        if ((*cmd_start == 'G') && !(IS_SD_PRINTING))
             usb_timer.start();
 
         if (allow_when_stopped == false && Stopped == true) {