Skip to content

Commit 6eeb87d

Browse files
committed
Fix adm max instruction check to actually allow using full allocated memory.
1 parent 23a5ccd commit 6eeb87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prawn_do/prawn_do.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ int main(){
528528
}
529529

530530
// Check that the instructions will fit in the do_cmds array
531-
if(inst_count + start_addr >= MAX_DO_CMDS - 3){
531+
if(inst_count + start_addr > MAX_INSTR){
532532
fast_serial_printf("Invalid address and/or too many instructions (%d + %d).\r\n", start_addr, inst_count);
533533
}
534534

0 commit comments

Comments
 (0)