fixing _populate_issues

This commit is contained in:
sanjayk03-dev
2025-06-10 23:31:50 +05:30
parent a1708d0755
commit dc6e3b958e
2 changed files with 8 additions and 2 deletions

View File

@@ -611,11 +611,12 @@ class RotaryHandler(bbctrl.APIHandler):
log = self.get_log('RotaryHandler') log = self.get_log('RotaryHandler')
try: try:
onefinity_defaults_path = bbctrl.get_resource('onefinity_defaults.json') onefinity_defaults_path = bbctrl.get_resource('http/onefinity_defaults.json')
template_path = bbctrl.get_resource('http/config-template.json')
with open(onefinity_defaults_path, 'r') as f: with open(onefinity_defaults_path, 'r') as f:
defaults = json.load(f) defaults = json.load(f)
template_path = bbctrl.get_resource('config-template.json')
with open(template_path, 'r') as f: with open(template_path, 'r') as f:
template = json.load(f) template = json.load(f)

View File

@@ -246,6 +246,11 @@
"index": "0123", "index": "0123",
"default": [{ "axis": "X" }, { "axis": "Y" }, { "axis": "Z" }, { "axis": "A" }], "default": [{ "axis": "X" }, { "axis": "Y" }, { "axis": "Z" }, { "axis": "A" }],
"template": { "template": {
"axis": {
"type": "enum",
"values": ["X", "Y", "Z", "A", "B", "C"],
"default": "X"
},
"min-soft-limit": { "min-soft-limit": {
"type": "float", "type": "float",
"default": 0 "default": 0