Implement proper shutdown procedure for R1 neo

fixes #2361
이 커밋은 다음에 포함됨:
Wessel Nieboer
2026-04-21 21:29:18 +02:00
부모 d532481f34
커밋 07671cf1fe
2개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
+4 -1
파일 보기
@@ -14,9 +14,12 @@ const PowerMgtConfig power_config = {
void R1NeoBoard::initiateShutdown(uint8_t reason) {
// Disable LoRa module power before shutdown
MESH_DEBUG_PRINTLN("R1Neo: shutting down");
digitalWrite(SX126X_POWER_EN, LOW);
// Signal IO controller that MCU is off, then release DCDC latch
digitalWrite(PIN_SOFT_SHUTDOWN, LOW);
digitalWrite(PIN_DCDC_EN_MCU_HOLD, LOW);
if (reason == SHUTDOWN_REASON_LOW_VOLTAGE ||
reason == SHUTDOWN_REASON_BOOT_PROTECT) {
configureVoltageWake(power_config.lpcomp_ain_channel, power_config.lpcomp_refsel);