Add parentheses to SD macros

This commit is contained in:
Scott Lahteine
2018-10-19 13:52:44 -05:00
parent aa9202260d
commit c6a5c74208
11 changed files with 27 additions and 27 deletions

View File

@@ -38,7 +38,7 @@
* This has no effect during an SD print job
*/
void GcodeSuite::M73() {
if (!IS_SD_PRINTING && parser.seen('P')) {
if (!IS_SD_PRINTING() && parser.seen('P')) {
progress_bar_percent = parser.value_byte();
NOMORE(progress_bar_percent, 100);
}

View File

@@ -450,7 +450,7 @@ inline void get_serial_commands() {
#endif
;
if (!IS_SD_PRINTING) return;
if (!IS_SD_PRINTING()) return;
/**
* '#' stops reading from SD to the buffer prematurely, so procedural