Skip to content

Commit

Permalink
soc_ovms: fix double execution, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rleidner committed Nov 14, 2024
1 parent d09e3e9 commit e79a5e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion modules/soc_ovms/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ incrementTimer(){
getAndWriteSoc(){
openwbDebugLog ${DMOD} 2 "Lp$CHARGEPOINT: Requesting SoC"
echo 0 > $soctimerfile
echo $($MODULEDIR/soc_ovms.py --server "$server" --user "$username" --password "$password" --vehicleId "$vehicleId" --chargepoint "$CHARGEPOINT" 2>>$RAMDISKDIR/soc.log)
answer=$($MODULEDIR/soc_ovms.py --server "$server" --user "$username" --password "$password" --vehicleId "$vehicleId" --chargepoint "$CHARGEPOINT" 2>>$RAMDISKDIR/soc.log)
if [ $? -eq 0 ]; then
# we got a valid answer
Expand Down
2 changes: 1 addition & 1 deletion modules/soc_ovms/soc_ovms.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def get_status(user_id: str) -> Union[int, dict]:
return int(status_code), respDict


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

Expand Down

0 comments on commit e79a5e6

Please sign in to comment.