void T_runProc::sub_getDynMachineConditions(struct T_dynamicCondition *dynMachCond):

Use T_dynamicCondition directly.
This commit is contained in:
Gerhard Hoffmann 2024-06-27 12:46:51 +02:00
parent b4a6d4a073
commit 81cba7e615

View File

@ -400,22 +400,7 @@ void T_runProc::changer_getAllParameters(struct T_changer *mw)
void T_runProc::sub_getDynMachineConditions(struct T_dynamicCondition *dynMachCond)
{
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<LL);
epi_restoreDynMachineConditions(dynMachCond);
}