Skip to content

Commit

Permalink
PicoVector: Remove (ifdef guard) debug functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Oct 25, 2024
1 parent 95d046a commit 27f5309
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions micropython/modules/picovector/picovector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,14 @@ typedef struct _POLY_obj_t {
pp_poly_t *poly;
} _POLY_obj_t;

#if DEBUG
void __printf_debug_flush() {
for(auto i = 0u; i < 10; i++) {
sleep_ms(1);
mp_event_handle_nowait();
}
}

#define mp_picovector_get_point_type mp_obj_get_float
#define mp_picovector_set_point_type mp_obj_new_float

int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args);

void af_debug(const char *fmt, ...) {
Expand All @@ -55,6 +53,11 @@ void af_debug(const char *fmt, ...) {
__printf_debug_flush();
(void)ret;
}
#endif

#define mp_picovector_get_point_type mp_obj_get_float
#define mp_picovector_set_point_type mp_obj_new_float


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

0 comments on commit 27f5309

Please sign in to comment.