Pinned cbang, updated .gitignore, bumped version

This commit is contained in:
David Carley
2021-03-02 07:56:53 -08:00
parent a0ae0a4e30
commit 353cbb0eea
4 changed files with 9 additions and 3 deletions

View File

@@ -137,7 +137,9 @@ class Config(object):
def upgrade(self, config):
version = tuple(map(int, config['version'].split('.')))
version = config['version']
version = version.split('b')[0] # Strip off any "beta" suffix
version = tuple(map(int, version.split('.'))) # Break it into a tuple of integers
if version < (0, 2, 4):
for motor in config['motors']:
@@ -177,7 +179,7 @@ class Config(object):
self._update(config, False)
with open(self.ctrl.get_path('config.json'), 'w') as f:
json.dump(config, f)
json.dump(config, f, indent=2)
os.sync()