void T_runProc::sub_getDynMachineConditions(struct T_dynamicCondition *dynMachCond):
Use T_dynamicCondition directly.
This commit is contained in:
parent
b4a6d4a073
commit
81cba7e615
@ -400,22 +400,7 @@ void T_runProc::changer_getAllParameters(struct T_changer *mw)
|
|||||||
|
|
||||||
void T_runProc::sub_getDynMachineConditions(struct T_dynamicCondition *dynMachCond)
|
void T_runProc::sub_getDynMachineConditions(struct T_dynamicCondition *dynMachCond)
|
||||||
{
|
{
|
||||||
|
epi_restoreDynMachineConditions(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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user