Tapping button while screen is touched may drop button event
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cpp
- Ambito
- embedded-iot
Direzione di ricerca
Inizia in src/systemtask/SystemTask.cpp, nell'impostazione pinConfig.hi_accuracy intorno alla riga 155, quindi leggi la documentazione collegata sugli interrupt GPIOTE dell'nRF5 SDK. Riproduci il problema tenendo premuto lo schermo e toccando il pulsante laterale, quindi confronta le configurazioni degli interrupt tenendo conto del compromesso documentato relativo al consumo energetico. Il lavoro è completato quando gli eventi del pulsante non vengono persi né rimangono erroneamente nello stato di pressione, senza un impatto inaccettabile sul consumo energetico.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Verification
- I searched for similar bug reports (including closed issues) and found none was relevant.
What happened?
Tapping the side button while the screen is touched may drop button toggle events.
What should happen instead?
Tapping the side button while the screen is touched does not drop any events.
Reproduction steps
- Open any app (not necessary but useful for demonstration)
- Hold touch on the screen
- Tap the side button
Possible outcomes:
- The screen goes back to the apps list. This is when the bug fails to trigger. Try again.
- The button press does not go through.
- The screen goes directly to the watch face. At this point you can release the screen touch and wait. It will further go to the watch info page, as though the button was still pressed.
Reproducing this bug should take around 5-10 tries, it's not extremely rare.
More details?
In the third outcome listed where there is still a phantom held button press, the watch will not reset like it normally does if the button is held for a very long time.
I believe the bug is caused by the interrupt mode used for the screen and button. The low accuracy mode used cannot handle more than one active pin at a time (source). Changing the interrupts to use high accuracy mode by changing pinConfig.hi_accuracy on line 155 of src/systemtask/SystemTask.cpp to true does indeed seem to fix this issue, but mark9084 in the Pine64 discord informed me that this could increase power draw by 60uA if the high frequency clock is not already running (they provided this link to relevant documentation) so this may not be a desirable fix.
Version
e03414c
Companion app
No response
- Lingua principale
- C
- Stelle
- 3.4k
- Fork
- 1.1k
- Merge medio
- 23h 18m
- PR unite (30g)
- 1
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di InfiniTimeOrg/InfiniTime
-
BLE handlers use length fields from the packet without checking how much data arrivedForse già presa @DustinHab l’ha presa 35 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
InfiniTimeOrg/InfiniTime#2485 ·
-
Unexpected jump back to watch face when button pressedForse già presa @SteveAmor l’ha presa 79 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
InfiniTimeOrg/InfiniTime#2461 · 2 commenti ·
-
Screen doesn't go to sleep after reset countdown appForse già presa @SteveAmor l’ha presa 76 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
InfiniTimeOrg/InfiniTime#2419 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
InfiniTimeOrg/InfiniTime#2410 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
InfiniTimeOrg/InfiniTime#2407 · 4 commenti ·
Tutte le issue di InfiniTimeOrg/InfiniTime
Issue simili
-
tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
antoxa2584x/nfsu2-sw#44 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
codepointerapp/codepointer#231 ·