Send voltage Value as healthEvent
This commit is contained in:
@@ -161,6 +161,15 @@ uint8_t DeviceControllerDiag::sub_componentAssessment()
|
||||
struct T_devices devPara;
|
||||
hw->sys_restoreDeviceParameter(&devPara);
|
||||
|
||||
// store some interesting results:
|
||||
// -> voltage:
|
||||
uint32_t voltage = hw->dc_getVoltage();
|
||||
emit newVoltage(voltage);
|
||||
|
||||
|
||||
|
||||
// check for invalid states:
|
||||
|
||||
if (modCond.rtc>=200)
|
||||
return 1;
|
||||
if (modCond.printer==200 || modCond.printer==201) // 200: not connected 201: printer-HW-error 202: no paper
|
||||
|
||||
Reference in New Issue
Block a user