Skip to content

Commit

Permalink
add battery level to mission
Browse files Browse the repository at this point in the history
  • Loading branch information
koalazak committed Feb 24, 2017
1 parent 583efa1 commit 36b7cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function cloud (username, password, version) {
return cloudV2(username, password);
}

function local (username, password, ip, version) {
if (version === 1) return localV1(username, password, ip);
function local (username, password, ip, version, interval) {
if (version === 1) return localV1(username, password, ip, interval);
return localV2(username, password, ip);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/v2/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var dorita980 = function localV2 (user, password, host, emitIntervalTime) {
getWeek: () => waitPreferences(false, ['cleanSchedule'], true),
getPreferences: (decode) => waitPreferences(decode, ['cleanMissionStatus', 'cleanSchedule', 'name', 'vacHigh', 'pose', 'signal'], false),
getRobotState: (fields) => waitPreferences(false, fields, false),
getMission: (decode) => waitPreferences(decode, ['cleanMissionStatus', 'pose', 'bin'], true),
getMission: (decode) => waitPreferences(decode, ['cleanMissionStatus', 'pose', 'bin', 'batPct'], true),
getWirelessConfig: () => waitPreferences(false, ['wlcfg', 'netinfo'], true),
getWirelessStatus: () => waitPreferences(false, ['wifistat', 'netinfo'], true),
getCloudConfig: () => waitPreferences(false, ['cloudEnv'], true),
Expand Down

0 comments on commit 36b7cd0

Please sign in to comment.