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;