Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Tapping button while screen is touched may drop button event

Aperta
#2,346 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

bug
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

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di InfiniTimeOrg/InfiniTime

Tutte le issue di InfiniTimeOrg/InfiniTime

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.