Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soc_ovms: fix double execution and comment #2855

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading