Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Tapping button while screen is touched may drop button event

Abierto
#2,346 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
embedded-iot

Línea de trabajo

Empieza en src/systemtask/SystemTask.cpp, en la configuración pinConfig.hi_accuracy alrededor de la línea 155, y después lee la documentación vinculada sobre interrupciones GPIOTE del nRF5 SDK. Reproduce el problema manteniendo pulsada la pantalla y tocando el botón lateral, y compara las configuraciones de interrupción teniendo en cuenta el compromiso documentado entre ellas y el consumo de energía. Se considera terminado cuando los eventos del botón no se pierden ni quedan registrados como pulsados de forma espuria, sin un impacto inaceptable en el consumo de energía.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C
Estrellas
3.4k
Forks
1.1k
Merge medio
23 h 18 min
PR fusionados (30 d)
1

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InfiniTimeOrg/InfiniTime

Todos los issues de InfiniTimeOrg/InfiniTime

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.