Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Check if `microcontroller.reset()` in quick succession will enter double-reset safe mode

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

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

Hướng nghiên cứu

Read shared-bindings/alarm/SleepMemory.c and supervisor/shared/safe_mode.c, then trace how the double-reset detector handles resets shortly after boot. Verify whether calling microcontroller.reset() in quick succession activates safe mode. Done means establishing whether the removed documentation note was accurate and whether the behavior is a bug.

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

Mô tả

#10899 originally added this doc note in shared-bindings/alarm/SleepMemory.c:

//|     .. note::
//|         Programs that call ``microcontroller.reset()`` should wait at least
//|         one second after boot before resetting, otherwise CircuitPython's
//|         double-reset safe mode detector may activate. See
//|         ``supervisor/shared/safe_mode.c``.

@tannewt wasn't sure this was true. I removed it in #10989. Revisit this later. If it is true, maybe it's a bug.
Tagging @lzrd, who added the comment, for interest.

Ngôn ngữ chính
C
Star
4.6k
Fork
1.4k
Merge trung bình
23 giờ 40 phút
Pull request đã merge (30 ngày)
167

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 adafruit/circuitpython

Tất cả issue của adafruit/circuitpython

Issue tương tự

Thêm issue về C

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.