Skip to content

Commit b72807f

Browse files
authored
Merge pull request #2855 from rleidner/soc_ovms_p2
soc_ovms: fix double execution and comment
2 parents d09e3e9 + e79a5e6 commit b72807f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

modules/soc_ovms/main.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ incrementTimer(){
7171
getAndWriteSoc(){
7272
openwbDebugLog ${DMOD} 2 "Lp$CHARGEPOINT: Requesting SoC"
7373
echo 0 > $soctimerfile
74-
echo $($MODULEDIR/soc_ovms.py --server "$server" --user "$username" --password "$password" --vehicleId "$vehicleId" --chargepoint "$CHARGEPOINT" 2>>$RAMDISKDIR/soc.log)
7574
answer=$($MODULEDIR/soc_ovms.py --server "$server" --user "$username" --password "$password" --vehicleId "$vehicleId" --chargepoint "$CHARGEPOINT" 2>>$RAMDISKDIR/soc.log)
7675
if [ $? -eq 0 ]; then
7776
# we got a valid answer

modules/soc_ovms/soc_ovms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def get_status(user_id: str) -> Union[int, dict]:
231231
return int(status_code), respDict
232232

233233

234-
# async function to fetch soc, range, soc_ts
234+
# function to fetch soc, range, soc_ts
235235
def _fetch_soc(user_id: str, password: str, chargepoint: int) -> int:
236236
global log, session, token, vehicleId
237237

0 commit comments

Comments
 (0)