Skip to content

Commit

Permalink
s/persistant/persistent/g (commaai#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
vntarasov authored and rbiasini committed May 30, 2018
1 parent 0c959c0 commit 37ac143
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions common/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def mkdirs_exists_ok(path):
raise

class TxType(Enum):
PERSISTANT = 1
PERSISTENT = 1
CLEAR_ON_MANAGER_START = 2
CLEAR_ON_CAR_START = 3

Expand All @@ -47,37 +47,37 @@ class UnknownKeyName(Exception):
keys = {
# written: manager
# read: loggerd, uploaderd, offroad
"DongleId": TxType.PERSISTANT,
"AccessToken": TxType.PERSISTANT,
"Version": TxType.PERSISTANT,
"TrainingVersion": TxType.PERSISTANT,
"GitCommit": TxType.PERSISTANT,
"GitBranch": TxType.PERSISTANT,
"GitRemote": TxType.PERSISTANT,
"DongleId": TxType.PERSISTENT,
"AccessToken": TxType.PERSISTENT,
"Version": TxType.PERSISTENT,
"TrainingVersion": TxType.PERSISTENT,
"GitCommit": TxType.PERSISTENT,
"GitBranch": TxType.PERSISTENT,
"GitRemote": TxType.PERSISTENT,
# written: baseui
# read: ui, controls
"IsMetric": TxType.PERSISTANT,
"IsRearViewMirror": TxType.PERSISTANT,
"IsFcwEnabled": TxType.PERSISTANT,
"HasAcceptedTerms": TxType.PERSISTANT,
"CompletedTrainingVersion": TxType.PERSISTANT,
"IsUploadVideoOverCellularEnabled": TxType.PERSISTANT,
"IsMetric": TxType.PERSISTENT,
"IsRearViewMirror": TxType.PERSISTENT,
"IsFcwEnabled": TxType.PERSISTENT,
"HasAcceptedTerms": TxType.PERSISTENT,
"CompletedTrainingVersion": TxType.PERSISTENT,
"IsUploadVideoOverCellularEnabled": TxType.PERSISTENT,
# written: visiond
# read: visiond, controlsd
"CalibrationParams": TxType.PERSISTANT,
"CalibrationParams": TxType.PERSISTENT,
# written: visiond
# read: visiond, ui
"CloudCalibration": TxType.PERSISTANT,
"CloudCalibration": TxType.PERSISTENT,
# written: controlsd
# read: radard
"CarParams": TxType.CLEAR_ON_CAR_START,

"Passive": TxType.PERSISTANT,
"Passive": TxType.PERSISTENT,
"DoUninstall": TxType.CLEAR_ON_MANAGER_START,
"ShouldDoUpdate": TxType.CLEAR_ON_MANAGER_START,
"IsUpdateAvailable": TxType.PERSISTANT,
"IsUpdateAvailable": TxType.PERSISTENT,

"RecordFront": TxType.PERSISTANT,
"RecordFront": TxType.PERSISTENT,
}

def fsync_dir(path):
Expand Down

0 comments on commit 37ac143

Please sign in to comment.