Skip to content

Commit 051d5d1

Browse files
author
chenwenhao
committed
fix wio terminal block's number field bugs
1 parent 492ffd2 commit 051d5d1

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

blocks/blocks_vertical/base/math.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ let list = [
133133
{ min: 1, max: 999999999 },
134134
{ min: -100, max: 100 },
135135
{ min: 0, max: 200 },
136+
{ min: 0, max: 240 },
137+
{ min: 0, max: 320 },
136138
{ min: -999999999, max: 999999999 },
137139
];
138140

gui/src/lib/generators/wioterminal/system.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,6 @@ export default (Blockly) => {
2424
932, //# Bb5, 36
2525
];
2626

27-
// const ei_printfDefine = function () {
28-
// Blockly.Arduino.define_fun['ei_printf'] =
29-
// `void ei_printf(const char *format, ...) {
30-
// static char print_buf[1024] = { 0 };
31-
32-
// va_list args;
33-
// va_start(args, format);
34-
// int r = vsnprintf(print_buf, sizeof(print_buf), format, args);
35-
// va_end(args);
36-
37-
// if (r > 0) {
38-
// Serial.write(print_buf);
39-
// }
40-
// }`
41-
// }
42-
4327
Blockly.Arduino['system_wioterminal_setup_loop'] = Blockly.Arduino['motion_arduino_setup_loop'];
4428

4529
Blockly.Arduino['math_cc_min_0_max_240_number'] = Blockly.Arduino['math_number'];

0 commit comments

Comments
 (0)