InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.63k stars 902 forks source link

Bluetooth setting is behaving abnormally #1961

Closed rambonette closed 3 months ago

rambonette commented 5 months ago

Verification

What happened?

Opening bluetooth setting turns off bluetooth on ui only, toggling bluetooth off does not work when connected to companion app

What should happen instead?

Opening bluetooth setting should not turn off bluetooth, disabling bluetooth should disconnect from companion app

Reproduction steps

The issue could be divided in two parts:

1. When visiting the bluetooth setting and leaving without changing anything results in UI reporting bluetooth not connected (check the icon on the top right corner)

I'm intentionally saying "UI reporting bluetooth not connected" because as you can see from the video the device is still connected as Gadgetbrige it's still able to trigger the "find lost watch" routine.

https://github.com/InfiniTimeOrg/InfiniTime/assets/7011942/a30f46df-505b-4053-a4a1-1d59987fc433

2. Bluetooth does not turn off while the watch is connected to the companion app (phone)

When bluetooth is disabled the watch should disconnect from the paired device, but it does not as again Gadgetbridge is able to launch the "find lost watch" routine. It triggers off only once also Gadgetbridge also disconnects.

https://github.com/InfiniTimeOrg/InfiniTime/assets/7011942/06bcf135-3112-46a4-8f99-4d4c4a1cef45

P.S.: sorry for my frustrating mis-clicks, poor quality and overall shakiness of the videos, I'm only hoping to help :smile:

More details?

I'd gladly make a PR but my day job is taking all my time at the moment.

Version

1.14.0 but, did not test in previous versions

Companion app

Gadgetbridge