We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f3460 commit 4cdb0eaCopy full SHA for 4cdb0ea
src/gpx/gpx.c
@@ -2115,8 +2115,9 @@ static int queue_song(Gpx *gpx, unsigned song_id)
2115
// song ID 0: error tone with 4 cycles
2116
// song ID 1: done tone
2117
// song ID 2: error tone with 2 cycles
2118
+ // ... see Sailfish source for the rest.
2119
- assert(song_id <= 2);
2120
+ assert(song_id <= 255);
2121
2122
begin_frame(gpx);
2123
@@ -5164,7 +5165,7 @@ int gpx_convert_line(Gpx *gpx, char *gcode_line)
5164
5165
case 72:
5166
if(gpx->command.flag & P_IS_SET) {
5167
unsigned song_id = (unsigned)gpx->command.p;
- if(song_id > 2) song_id = 2;
5168
+ if(song_id > 255) song_id = 2;
5169
CALL( queue_song(gpx, song_id) );
5170
command_emitted++;
5171
}
0 commit comments