AlarmConfig.duration units are unverified ("TODO plz verify")

オープン
#36 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
backend

調査の方向性

Read crates/podd-core/src/config/mod.rs and sensor/manager.rs, especially the duration flow and in_alarm_window; the issue also points to seconds-based window construction and firmware start-log fixtures in state.rs. Confirm the firmware's duration unit on hardware, then compare it with the host-side alarm window. Done means the unit is verified and the TODO is removed.

索引モデルが issue の本文から書いたものです。

説明

question

AlarmConfig.duration carries the comment duration in seconds (TODO plz verify) (crates/podd-core/src/config/mod.rs:58). This value flows straight into AlarmCommand.duration (sensor/manager.rs:683-685) and is compared against a seconds-based alarm window (in_alarm_window builds alarm_end from Span::seconds(alarm_cfg.duration), manager.rs:655-656). If the firmware actually interprets the field as milliseconds (the FW start log reports dur 600000 ms in the state.rs test fixtures), the host-side window and the firmware run-length would disagree. Worth confirming the unit on hardware and removing the TODO.


Filed from a repo-wide code audit (working tree at bcad746).

主要言語
Rust
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GoogleBot42/podd のほかの issue

GoogleBot42/podd の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。