change debugging printout
This commit is contained in:
parent
de4d11e5a7
commit
d41580c415
2 changed files with 3 additions and 7 deletions
|
|
@ -84,8 +84,9 @@ void pdmain_print( const char *s)
|
||||||
char y[80];
|
char y[80];
|
||||||
strncpy(y, s, 79);
|
strncpy(y, s, 79);
|
||||||
y[79]=0;
|
y[79]=0;
|
||||||
ESP_LOGI(TAG, "%s", y);
|
ESP_LOGI(TAG, "post %d: %s", strlen(y), y);
|
||||||
pd_bt_writeback((unsigned char *)y, strlen(y));
|
if (strlen(y) > 0)
|
||||||
|
pd_bt_writeback((unsigned char *)y, strlen(y));
|
||||||
}
|
}
|
||||||
|
|
||||||
void trymem(int foo);
|
void trymem(int foo);
|
||||||
|
|
|
||||||
|
|
@ -61,10 +61,7 @@ void pd_sendmsg(char *buf, int bufsize)
|
||||||
{
|
{
|
||||||
static t_binbuf *b;
|
static t_binbuf *b;
|
||||||
if (!b)
|
if (!b)
|
||||||
{
|
|
||||||
b = binbuf_new();
|
b = binbuf_new();
|
||||||
post("new binbuf %x", b);
|
|
||||||
}
|
|
||||||
binbuf_text(b, buf, bufsize);
|
binbuf_text(b, buf, bufsize);
|
||||||
binbuf_eval(b, 0, 0, 0);
|
binbuf_eval(b, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
@ -74,9 +71,7 @@ void canvas_start_dsp( void);
|
||||||
void pdmain_init( void)
|
void pdmain_init( void)
|
||||||
{
|
{
|
||||||
sys_printhook = pdmain_print;
|
sys_printhook = pdmain_print;
|
||||||
trymem(1);
|
|
||||||
pd_init();
|
pd_init();
|
||||||
trymem(2);
|
|
||||||
STUFF->st_dacsr = sys_getsr();
|
STUFF->st_dacsr = sys_getsr();
|
||||||
STUFF->st_soundout = soundout;
|
STUFF->st_soundout = soundout;
|
||||||
STUFF->st_soundin = soundin;
|
STUFF->st_soundin = soundin;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue