Enabling away mode while an alarm is vibrating leaves it running (schedule stops cancelling it)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 67/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- embedded-iot
Direzione di ricerca
Read crates/podd-core/src/sensor/manager.rs, especially the RegisteredCommand can_run closures at lines 426–446 and get_alarm_cmd at lines 688–702. Trace how the schedule handles an alarm already running when away mode turns on, then check the relevant scheduler tests or add a focused regression test. Done means the schedule emits the intensity-0 cancel in this case while still preventing the alarm from starting when away mode is on.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The left/right alarm RegisteredCommand can_run closures short-circuit to None whenever away is true: if state.vibration_enabled && !away { get_alarm_cmd(...) } else { None } (crates/podd-core/src/sensor/manager.rs:426-432 and 440-446). get_alarm_cmd is also what emits the intensity-0 cancel when an alarm is running but shouldn't be (manager.rs:688-702). So if an alarm starts (away off) and away mode is then toggled on mid-window, the scheduler never issues the cancel and the alarm keeps vibrating until the firmware's own max-duration timeout. The away-mode gate should still allow the out-of-window/should-not-run cancel path to fire. Double-tap and API ClearAlarm still work, but the schedule no longer stops it.
Filed from a repo-wide code audit (working tree at bcad746).
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 GoogleBot42/podd
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
GoogleBot42/podd#63 ·
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
GoogleBot42/podd#62 ·
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
GoogleBot42/podd#60 ·
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
GoogleBot42/podd#61 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
GoogleBot42/podd#58 ·
Tutte le issue di GoogleBot42/podd
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
rubys/roundhouse#1917 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
[cosmic-applet-battery] Division by zero displays NaN% when UPower reports max_brightness = 0Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
pop-os/cosmic-applets#1619 ·
I maintainer di solito rispondono entro 3 giorni
-
binding:python bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno