File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
micropython/modules/picovector Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,14 @@ typedef struct _POLY_obj_t {
35
35
pp_poly_t *poly;
36
36
} _POLY_obj_t;
37
37
38
+ #if DEBUG
38
39
void __printf_debug_flush () {
39
40
for (auto i = 0u ; i < 10 ; i++) {
40
41
sleep_ms (1 );
41
42
mp_event_handle_nowait ();
42
43
}
43
44
}
44
45
45
- #define mp_picovector_get_point_type mp_obj_get_float
46
- #define mp_picovector_set_point_type mp_obj_new_float
47
-
48
46
int mp_vprintf (const mp_print_t *print, const char *fmt, va_list args);
49
47
50
48
void af_debug (const char *fmt, ...) {
@@ -55,6 +53,11 @@ void af_debug(const char *fmt, ...) {
55
53
__printf_debug_flush ();
56
54
(void )ret;
57
55
}
56
+ #endif
57
+
58
+ #define mp_picovector_get_point_type mp_obj_get_float
59
+ #define mp_picovector_set_point_type mp_obj_new_float
60
+
58
61
59
62
void *af_malloc (size_t size) {
60
63
// mp_printf(&mp_plat_print, "af_malloc %lu\n", size);
You can’t perform that action at this time.
0 commit comments