Skip to content

Commit 8433c61

Browse files
committed
PicoVector: Remove (ifdef guard) debug functions.
1 parent 51645da commit 8433c61

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

micropython/modules/picovector/picovector.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ typedef struct _POLY_obj_t {
3535
pp_poly_t *poly;
3636
} _POLY_obj_t;
3737

38+
#if DEBUG
3839
void __printf_debug_flush() {
3940
for(auto i = 0u; i < 10; i++) {
4041
sleep_ms(1);
4142
mp_event_handle_nowait();
4243
}
4344
}
4445

45-
#define mp_picovector_get_point_type mp_obj_get_float
46-
#define mp_picovector_set_point_type mp_obj_new_float
47-
4846
int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args);
4947

5048
void af_debug(const char *fmt, ...) {
@@ -55,6 +53,11 @@ void af_debug(const char *fmt, ...) {
5553
__printf_debug_flush();
5654
(void)ret;
5755
}
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+
5861

5962
void *af_malloc(size_t size) {
6063
//mp_printf(&mp_plat_print, "af_malloc %lu\n", size);

0 commit comments

Comments
 (0)