From 254fc47b2c01f1e80150481e6030956dc623e933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 19 May 2026 07:18:12 +0200 Subject: [PATCH] trunk fmt --- boards/t-impulse-plus.json | 9 ++++++++- src/power/SGM41562.h | 7 ++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/boards/t-impulse-plus.json b/boards/t-impulse-plus.json index 233ba7756..f5586e1d8 100644 --- a/boards/t-impulse-plus.json +++ b/boards/t-impulse-plus.json @@ -38,7 +38,14 @@ "require_upload_port": true, "speed": 115200, "protocol": "nrfutil", - "protocols": ["jlink", "nrfjprog", "nrfutil", "stlink", "cmsis-dap", "blackmagic"] + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "stlink", + "cmsis-dap", + "blackmagic" + ] }, "url": "https://www.lilygo.cc/", "vendor": "Lilygo" diff --git a/src/power/SGM41562.h b/src/power/SGM41562.h index a75f781df..30836ff09 100644 --- a/src/power/SGM41562.h +++ b/src/power/SGM41562.h @@ -43,10 +43,7 @@ class SGM41562 // Status — cached from the most recent refresh(). ChargeStatus chargeStatus() const { return chargeStatus_; } - bool isCharging() const - { - return chargeStatus_ == ChargeStatus::Precharge || chargeStatus_ == ChargeStatus::FastCharge; - } + bool isCharging() const { return chargeStatus_ == ChargeStatus::Precharge || chargeStatus_ == ChargeStatus::FastCharge; } bool isChargeDone() const { return chargeStatus_ == ChargeStatus::ChargeDone; } bool isInputPowerGood() const { return inputPowerGood_; } bool isThermalRegulation() const { return thermalReg_; } @@ -91,7 +88,7 @@ class SGM41562 // Bit positions in REG_SYSTEM_STATUS. static constexpr uint8_t SYS_STATUS_CHRG_SHIFT = 3; static constexpr uint8_t SYS_STATUS_CHRG_MASK = 0x03; - static constexpr uint8_t SYS_STATUS_PG = 0x02; // bit 1: input power good + static constexpr uint8_t SYS_STATUS_PG = 0x02; // bit 1: input power good static constexpr uint8_t SYS_STATUS_THERM_REG = 0x01; // bit 0: thermal regulation static constexpr uint8_t DEVICE_ID_EXPECTED = 0x04;