We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530a1e2 commit cf18fabCopy full SHA for cf18fab
1 file changed
LinkIt7697/France/javascript.js
@@ -24121,7 +24121,7 @@ Blockly.Arduino['fu_mqtt_sendimage'] = function(block) {
24121
' int ps = MQTT_MAX_PACKET_SIZE;\n'+
24122
' mqtt_client.beginPublish(topic.c_str(), imgSize, false);\n'+
24123
' for (int i = 0; i < imgSize; i += ps) {\n'+
24124
- ' int s = (imgSize - i < s) ? (imgSize - i) : ps;\n'+
+ ' int s = (imgSize - i < ps) ? (imgSize - i) : ps;\n'+
24125
' mqtt_client.write((uint8_t *)(img_addr) + i, s);\n'+
24126
' }\n'+
24127
' boolean isPublished = mqtt_client.endPublish();\n'+
0 commit comments