Skip to content

Commit 92c5493

Browse files
authored
Merge pull request #786 from zfi/demo
Updates provided by MMatz
2 parents 29fcfcb + 6c80b47 commit 92c5493

File tree

1 file changed

+2
-2
lines changed
  • src/main/webapp/cdn/blockly/generators/propc

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ Blockly.propc.xbee_transmit = function () {
120120
if(type === "BYTE") {
121121
return 'fdserial_txChar(xbee, (' + data + ' & 0xFF) );\n';
122122
} else if(type === "INT") {
123-
return 'dprint(xbee, "%d\r", ' + data + ');\n';
123+
return 'dprint(xbee, "%d\\r", ' + data + ');\n';
124124
} else {
125-
var code = 'dprint(xbee, "%s\r", ' + text + ');\n';
125+
var code = 'dprint(xbee, "%s\\r", ' + data + ');\n';
126126
//code += 'fdserial_txChar(xbee, 0 );\n';
127127
code += 'while(!fdserial_txEmpty(xbee));\n';
128128
code += 'pause(5);\n';

0 commit comments

Comments
 (0)