mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 08:42:11 +08:00
use same env variable for loggerd, deleter, and uploader
old-commit-hash: 1d4b19f739270bd6b075c7ea9b48e7460ab867c0
This commit is contained in:
@@ -2,8 +2,8 @@ import os
|
||||
from pathlib import Path
|
||||
from selfdrive.hardware import PC
|
||||
|
||||
if os.environ.get('LOGGERD_ROOT', False):
|
||||
ROOT = os.environ['LOGGERD_ROOT']
|
||||
if os.environ.get('LOG_ROOT', False):
|
||||
ROOT = os.environ['LOG_ROOT']
|
||||
elif PC:
|
||||
ROOT = os.path.join(str(Path.home()), ".comma", "media", "0", "realdata")
|
||||
else:
|
||||
|
||||
@@ -24,7 +24,3 @@ print(f"Average power: {round(average_power, 4)}W")
|
||||
|
||||
if average_power > max_average_power:
|
||||
exit(1)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user