Send voltage Value as healthEvent

This commit is contained in:
2023-07-05 18:47:45 +02:00
parent 488152c37d
commit 334d67fd22
5 changed files with 50 additions and 1 deletions

View File

@@ -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