Skip to content

Commit

Permalink
M300 set 3.5s duration limit
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner committed Feb 11, 2025
1 parent 9fb034a commit c40af0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6515,11 +6515,11 @@ void process_commands()
#### Parameters
- `S` - frequency in Hz. Not all firmware versions support this parameter
- `P` - duration in milliseconds
- `P` - duration in milliseconds max 3500ms
*/
case 300: // M300
{
uint16_t beepP = code_seen('P') ? code_value() : 1000;
uint16_t beepP = code_seen('P') ? min(code_value(), 3500) : 1000;
uint16_t beepS;
if (!code_seen('S'))
beepS = 0;
Expand Down

0 comments on commit c40af0c

Please sign in to comment.