PicoVector: Remove (ifdef guard) debug functions.

pull/1064/head
Phil Howard 2024-10-10 11:21:06 +01:00
rodzic 089e5df243
commit 95b6c213dd
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -35,6 +35,7 @@ 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);
@ -42,9 +43,6 @@ void __printf_debug_flush() {
}
}
#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, ...) {
@ -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);