Skip to content

Commit 448ebb1

Browse files
committed
adding fix for updating the thermal and power spec updates
1 parent 0930f8e commit 448ebb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/api/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ def patch(self, device_id : str):
312312
device = device_mgr.get_device(device_id)
313313
schema = DeviceSchema()
314314
device.update_spec(schema.load(request.json)['specification'])
315+
device.compute_output_power()
315316
from submodule.rs_project import RsProjectManager
316317
RsProjectManager.get_instance().set_modified(True)
317318
return schema.dump(device), 200

0 commit comments

Comments
 (0)