We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fb034a commit c40af0cCopy full SHA for c40af0c
Firmware/Marlin_main.cpp
@@ -6515,11 +6515,11 @@ void process_commands()
6515
6516
#### Parameters
6517
- `S` - frequency in Hz. Not all firmware versions support this parameter
6518
- - `P` - duration in milliseconds
+ - `P` - duration in milliseconds max 3500ms
6519
*/
6520
case 300: // M300
6521
{
6522
- uint16_t beepP = code_seen('P') ? code_value() : 1000;
+ uint16_t beepP = code_seen('P') ? min(code_value(), 3500) : 1000;
6523
uint16_t beepS;
6524
if (!code_seen('S'))
6525
beepS = 0;
0 commit comments