Skip to content

Commit 225a9b4

Browse files
author
Matthew Matz
committed
fix lcd cursor position limit
1 parent 6d2d035 commit 225a9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/webapp/cdn/blockly/generators/propc/communicate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ Blockly.propc.debug_lcd_set_cursor = function () {
672672
if(Blockly.propc.setups_['setup_debug_lcd'] === undefined) {
673673
return '//Missing Serial LCD initialize block\n';
674674
} else {
675-
return 'writeChar(debug_lcd, (128 + (constrain(' + row + ', 0, 3) * 20) + constrain(' + column + ', 0, 20)));\n';
675+
return 'writeChar(debug_lcd, (128 + (constrain(' + row + ', 0, 3) * 20) + constrain(' + column + ', 0, 19)));\n';
676676
}
677677
};
678678

0 commit comments

Comments
 (0)