Skip to content

Commit

Permalink
更新 maqueen.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LinDong88 committed Nov 14, 2024
1 parent 8d08970 commit c3b7012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maqueen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ namespace Maqueen_V5 {
//% block="Read battery Values %type"
//% weight=16
//% group="Maqueen_v5"
export function getBatteryData(type: BatteryType): number {
export function getBatteryData(type: BatteryType = BatteryType.Alkaline): number {
let allBuffer = pins.createBuffer(2);
allBuffer[0]=BATTERY_SET;
allBuffer[1] = type;
Expand Down

0 comments on commit c3b7012

Please sign in to comment.