diff --git a/src/hwapi.cpp b/src/hwapi.cpp index ba0208b..4a3e6c3 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -3229,29 +3229,14 @@ void hwapi::sys_getDeviceConditions(struct T_moduleCondition *devCond) const -void hwapi::sys_getDynMachineConditions(uint8_t *leng, uint8_t *data) const +void hwapi::sys_getDynMachineConditions(void *data) const { - epi_restoreDynMachineConditions(leng, data); + epi_restoreDynMachineConditions(data); } void hwapi::sys_getDynMachineConditions(struct T_dynamicCondition *dynMachCond) const { - - uint16_t LL, nn; - char *start; - uint8_t buf[70], leng; - - epi_restoreDynMachineConditions(&leng, buf); - // Puffer in struct eintragen: - LL=sizeof(struct T_dynamicCondition); - start = &dynMachCond->allDoorsDebounced; - nn=0; - do - { - *start = buf[nn]; - start++; - } while(++nn