mirror of
https://github.com/meshtastic/firmware.git
synced 2026-08-01 10:58:30 -04:00
fcea931aebdfe96ca30c0e0c1d6bd586fe1efa79
isCharging()/getHasUSB() were hard-compiled to always return false on this board: the nrfx_power_usbstatus_get() block in Power.cpp that derives them is gated behind #ifdef NRF_APM, and this board's variant.h never defined it - unlike tracker-t1000-e and wio-tracker-wm1110, which do. Confirmed on hardware: before this change, `Battery: usbPower=0, isCharging=0` regardless of actual USB/charge state; after, `usbPower=1, isCharging=1` while genuinely on USB power with a battery attached. Same underlying gap as #4367, fixed for tracker-t1000-e and wio-tracker-wm1110 in #4376 (which also fixed a deeper bug where PowerStatus notifications were gated behind a battery-level null check - that part is already fixed generically in Power.cpp today, so this board only needed the define). Looks like a simple oversight from when this board was added, since it's newer than the two boards #4376 touched. Assisted-by: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Andrew Yong <me@ndoo.sg>
Overview
This repository contains the official device firmware for Meshtastic, an open-source LoRa mesh networking project designed for long-range, low-power communication without relying on internet or cellular infrastructure. The firmware supports various hardware platforms, including ESP32, nRF52, RP2040/RP2350, and Linux-based devices.
Meshtastic enables text messaging, location sharing, and telemetry over a decentralized mesh network, making it ideal for outdoor adventures, emergency preparedness, and remote operations.
Get Started
- 🔧 Building Instructions - Learn how to compile the firmware from source.
- ⚡ Flashing Instructions - Install or update the firmware on your device.
Join our community and help improve Meshtastic! 🚀
Stats
Languages
C++
70.9%
C
25.7%
Python
2.2%
Shell
0.7%
Batchfile
0.2%
Other
0.2%
