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

Đang mở
#36 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Rust
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GoogleBot42/podd

Tất cả issue của GoogleBot42/podd

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.