.
This commit is contained in:
@ -3147,6 +3147,8 @@ int LocalHdl(int mode, void *base, int fd) {
|
|||||||
} else if (mode==COC_WR) {
|
} else if (mode==COC_WR) {
|
||||||
remoteMode = 1 + (local == 0);
|
remoteMode = 1 + (local == 0);
|
||||||
return RemoteHdl(mode, base, fd);
|
return RemoteHdl(mode, base, fd);
|
||||||
|
} else if (mode==COC_DWR) {
|
||||||
|
return RemoteHdl(mode, base, fd);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -3289,6 +3291,7 @@ int main(int argc, char *argv[]) {
|
|||||||
CocStrFld(SensorT, type, RD);
|
CocStrFld(SensorT, type, RD);
|
||||||
|
|
||||||
CocDefStr(maxPower, RW); CocHdl(MaxPowerHdl);
|
CocDefStr(maxPower, RW); CocHdl(MaxPowerHdl);
|
||||||
|
CocDefFlt(maxPowerFlt, RD);
|
||||||
CocDefFlt(slope, RW); CocHdl(MaxPowerHdl);
|
CocDefFlt(slope, RW); CocHdl(MaxPowerHdl);
|
||||||
CocDefFlt(prop, RW); CocHdl(PidHdl);
|
CocDefFlt(prop, RW); CocHdl(PidHdl);
|
||||||
CocDefFlt(integ, RW); CocHdl(PidHdl);
|
CocDefFlt(integ, RW); CocHdl(PidHdl);
|
||||||
|
Reference in New Issue
Block a user