mirror of
https://github.com/NathanReeves/BlueCubeMod
synced 2024-11-24 01:52:20 -05:00
Change Grip/Order menu stays open on connect
This commit is contained in:
parent
3615f8f973
commit
5f7c484da1
@ -401,6 +401,10 @@ static uint8_t report30[] = {
|
||||
0,//Rs
|
||||
0x08
|
||||
};
|
||||
static uint8_t emptyReport[] = {
|
||||
0x0,
|
||||
0x0
|
||||
};
|
||||
|
||||
void send_buttons()
|
||||
{
|
||||
@ -422,12 +426,17 @@ void send_buttons()
|
||||
timer+=1;
|
||||
if(timer == 255)
|
||||
timer = 0;
|
||||
esp_hid_device_send_report(ESP_HIDD_REPORT_TYPE_INTRDATA, 0xa1, sizeof(report30), report30);
|
||||
|
||||
if(!paired)
|
||||
{
|
||||
esp_hid_device_send_report(ESP_HIDD_REPORT_TYPE_INTRDATA, 0xa1, sizeof(emptyReport), emptyReport);
|
||||
vTaskDelay(100);
|
||||
}
|
||||
else
|
||||
{
|
||||
esp_hid_device_send_report(ESP_HIDD_REPORT_TYPE_INTRDATA, 0xa1, sizeof(report30), report30);
|
||||
vTaskDelay(15);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user