Skip to content

Commit 5fe5c5e

Browse files
authored
Merge pull request #877 from MatzElectronics/demo
Minor fixes (lcd, upload dialog)
2 parents eb1f14a + 225a9b4 commit 5fe5c5e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-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

src/main/webapp/cdn/editor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ function uploadHandler(files) {
300300
uploadBoardType = xmlString.substring((boardIndex + 40), xmlString.indexOf('</text>', (boardIndex + 41)));
301301
if(uploadBoardType !== projectData['board']) {
302302
document.getElementById("selectfile-verify-boardtype").style.display = "block";
303+
} else {
304+
document.getElementById("selectfile-verify-boardtype").style.display = "none";
303305
}
304306
}
305307
};

0 commit comments

Comments
 (0)