From d41580c41517ab5e4c52f5a63b9e59559c894308 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Sat, 15 Jan 2022 12:41:03 -0800 Subject: [PATCH] change debugging printout --- main/espd.c | 5 +++-- main/pdmain.c | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/main/espd.c b/main/espd.c index 8a02be2..1d42b51 100644 --- a/main/espd.c +++ b/main/espd.c @@ -84,8 +84,9 @@ void pdmain_print( const char *s) char y[80]; strncpy(y, s, 79); y[79]=0; - ESP_LOGI(TAG, "%s", y); - pd_bt_writeback((unsigned char *)y, strlen(y)); + ESP_LOGI(TAG, "post %d: %s", strlen(y), y); + if (strlen(y) > 0) + pd_bt_writeback((unsigned char *)y, strlen(y)); } void trymem(int foo); diff --git a/main/pdmain.c b/main/pdmain.c index 8f670c1..279d40f 100644 --- a/main/pdmain.c +++ b/main/pdmain.c @@ -61,10 +61,7 @@ void pd_sendmsg(char *buf, int bufsize) { static t_binbuf *b; if (!b) - { b = binbuf_new(); - post("new binbuf %x", b); - } binbuf_text(b, buf, bufsize); binbuf_eval(b, 0, 0, 0); } @@ -74,9 +71,7 @@ void canvas_start_dsp( void); void pdmain_init( void) { sys_printhook = pdmain_print; - trymem(1); pd_init(); - trymem(2); STUFF->st_dacsr = sys_getsr(); STUFF->st_soundout = soundout; STUFF->st_soundin = soundin;