Skip to content

Commit

Permalink
FEATURE: Save Program Version into vehicle_components.json
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Aug 16, 2024
1 parent 4444023 commit 484647f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MethodicConfigurator/frontend_tkinter_component_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def update_json_data(self):
if 'TOW max Kg' not in self.data['Components']['Frame']['Specifications']:
self.data['Components']['Frame']['Specifications']['TOW max Kg'] = 1

self.data['Program version'] = VERSION

def set_vehicle_type_and_version(self, vehicle_type: str, version: str):
self._set_component_value_and_update_ui(('Flight Controller', 'Firmware', 'Type'), vehicle_type)
if version:
Expand Down

0 comments on commit 484647f

Please sign in to comment.