diff --git a/src/marlin_stubs/M300.cpp b/src/marlin_stubs/M300.cpp index a71a76e1b5..e4f70e7bac 100644 --- a/src/marlin_stubs/M300.cpp +++ b/src/marlin_stubs/M300.cpp @@ -4,6 +4,7 @@ #include "../common/sound.hpp" #include "PrusaGcodeSuite.hpp" #include "../../lib/Marlin/Marlin/src/gcode/parser.h" +#include "../lib/Marlin/Marlin/src/gcode/gcode.h" /** \addtogroup G-Codes * @{ @@ -25,6 +26,7 @@ void PrusaGcodeSuite::M300() { // Limits the tone duration to 0-5 seconds. NOMORE(duration, 5000U); Sound::getInstance().singleSound(frequency, duration, volume); + GcodeSuite::dwell(duration); } /** @}*/