mirror of
https://github.com/demik/quack.git
synced 2025-02-18 02:30:28 +00:00
fixed BT LED state in case some mouse is reconnecting while the quack is scanning
This commit is contained in:
parent
157ab85c84
commit
03a92bcda4
@ -1,5 +1,6 @@
|
|||||||
## v1.4.2 (unreleased)
|
## v1.4.2
|
||||||
- added support for MicroSpeed MacTRAC 2.0
|
- added support for MicroSpeed MacTRAC 2.0
|
||||||
|
- fixed a BT led state when a device reconnect while scanning
|
||||||
|
|
||||||
## v1.4.1
|
## v1.4.1
|
||||||
- update to ESP-IDF v4.2.2:
|
- update to ESP-IDF v4.2.2:
|
||||||
|
@ -513,6 +513,9 @@ void blue_scan(void *pvParameters) {
|
|||||||
ESP_LOGI(TAG, "starting scan on core %d…", xPortGetCoreID());
|
ESP_LOGI(TAG, "starting scan on core %d…", xPortGetCoreID());
|
||||||
esp_hid_scan(BLUE_SCAN_DURATION, &len, &results);
|
esp_hid_scan(BLUE_SCAN_DURATION, &len, &results);
|
||||||
ESP_LOGI(TAG, "scan returned %u result(s)", len);
|
ESP_LOGI(TAG, "scan returned %u result(s)", len);
|
||||||
|
|
||||||
|
/* don't put the slow blink is a device reconnected while scanning */
|
||||||
|
if (blue_pointers == 0)
|
||||||
xTaskNotify(t_blue, LED_SLOW, eSetValueWithOverwrite);
|
xTaskNotify(t_blue, LED_SLOW, eSetValueWithOverwrite);
|
||||||
|
|
||||||
if (len) {
|
if (len) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user