fix python build
This commit is contained in:
1 parent
1ed8122804
commit
d852fd961b
1 file changed
+4
-2
+4
-2
@@ -208,12 +208,14 @@ namespace sensors.internal {
|
||||
}
|
||||
}
|
||||
|
||||
export function getBatteryInfo(): {
|
||||
export interface BatteryInfo {
|
||||
level: number;
|
||||
Ibatt: number,
|
||||
Vbatt: number,
|
||||
Imotor: number
|
||||
} {
|
||||
}
|
||||
|
||||
export function getBatteryInfo(): BatteryInfo {
|
||||
init();
|
||||
if (!batteryInfo) updateBatteryInfo();
|
||||
const CinCnt = batteryInfo.CinCnt;
|
||||
|
||||
Reference in new issue
Block a user