-
Notifications
You must be signed in to change notification settings - Fork 107
Send hid command memory leak and nullpointer reference #26
Comments
Hi @JavadRah, I tried to reproduce the issue using following script called every 50ms in a loop but had no luck so far: if (PS4.Down()) {
PS4.setLed(123, 23, 45);
} else {
PS4.setLed(0, 80, 90);
}
PS4.sendToController(); It works perfectly for me.
BT_HDR *p_buf = NULL; //here
p_buf = (BT_HDR *)osi_malloc(BT_DEFAULT_BUFFER_SIZE);
if (!p_buf) {
ESP_LOGE(PS4_TAG, "[%s] allocating buffer for sending the command failed", __func__);
return; //here
}
|
Hi @Mendrzec ! |
Hi, sorry for the delay in reply.
|
@Mendrzec today I checked the SendData example and I figure out that the send data function doesn't work.
So I put the complete output for you:
anyway, I was trying to write another program, so I just send setLED command, I receive just:
PS4_L2CAP: [ps4_l2cap_send_hid] sending command: success
nothing else happened.
Originally posted by @JavadRah in #25 (comment)
The text was updated successfully, but these errors were encountered: