Closed carneirofc closed 5 years ago
Bug when the pins are set for a power supply but no message is returned.
jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: 15/07/2019 17:46:49 Something wrong happened ! jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: Traceback (most recent call last): jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: File "./whoami.py", line 46, in <module> jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: power_supply_pru() jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: File "/root/bbb-daemon/host/function/scripts/devices.py", line 87, in power_supply_pru jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: persist_info(Type.POWER_SUPPLY, 6000000, PRU_POWER_SUPPLY, 'PS model {}. Connected: {}'.for jul 15 17:46:49 PA-RaPSD04--CO-PSCtrl-SI1 bash[1019]: UnboundLocalError: local variable 'ps_model' referenced before assignment
The local variable ps_model is now initialized at the beginning of the for loop
ps_model
Bug when the pins are set for a power supply but no message is returned.