Browse Source

Merge pull request #3209 from AnHardt/call-buzz-direct

Call buzz() directly from M428
Scott Lahteine 9 years ago
parent
commit
815943ceed
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/Marlin_main.cpp

+ 3
- 2
Marlin/Marlin_main.cpp View File

5413
         SERIAL_ERRORLNPGM(MSG_ERR_M428_TOO_FAR);
5413
         SERIAL_ERRORLNPGM(MSG_ERR_M428_TOO_FAR);
5414
         LCD_ALERTMESSAGEPGM("Err: Too far!");
5414
         LCD_ALERTMESSAGEPGM("Err: Too far!");
5415
         #if HAS_BUZZER
5415
         #if HAS_BUZZER
5416
-          enqueue_and_echo_commands_P(PSTR("M300 S40 P200"));
5416
+          buzz(200, 40);
5417
         #endif
5417
         #endif
5418
         err = true;
5418
         err = true;
5419
         break;
5419
         break;
5427
     sync_plan_position();
5427
     sync_plan_position();
5428
     LCD_ALERTMESSAGEPGM("Offset applied.");
5428
     LCD_ALERTMESSAGEPGM("Offset applied.");
5429
     #if HAS_BUZZER
5429
     #if HAS_BUZZER
5430
-      enqueue_and_echo_commands_P(PSTR("M300 S659 P200\nM300 S698 P200"));
5430
+      buzz(200, 659);
5431
+      buzz(200, 698);
5431
     #endif
5432
     #endif
5432
   }
5433
   }
5433
 }
5434
 }

Loading…
Cancel
Save