mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
style: fix clang-format issue in Battery.h
This commit is contained in:
parent
0f29de49f8
commit
b8b55a68af
@ -8,6 +8,4 @@ static BatteryMonitor battery(BAT_GPIO0);
|
|||||||
|
|
||||||
// Returns true when USB is connected (device is charging)
|
// Returns true when USB is connected (device is charging)
|
||||||
// Uses GPIO20 (U0RXD) which reads HIGH when USB is connected
|
// Uses GPIO20 (U0RXD) which reads HIGH when USB is connected
|
||||||
inline bool isCharging() {
|
inline bool isCharging() { return digitalRead(20) == HIGH; }
|
||||||
return digitalRead(20) == HIGH;
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user