lpcmanager

LPCCommand : switch to wx.Timer instead of regular python timer for the rapidfire protection. With regular python timers, some refresh order could pile eventloop when interacting with the GUI while doing initial loading of signals.
#define DEVICEFILENAME "/dev/rtdm/rightbus"
bzero(&rightReadBuf, sizeof(rightReadBuf_t));
bzero(&rightWriteBuf, sizeof(rightWriteBuf_t));
bzero(&rightBusInit, sizeof(rightBusInit_t));
rightBusInit.common_ticktime__ = common_ticktime__;
#define rightI2CMod (rightBusInit.rightI2CMod)
%(init_code)s
int err;
rightbusfd = open( DEVICEFILENAME, 0);
if (rightbusfd < 0) {
printf("can't open %%s rtdm device, %%s\\n", DEVICEFILENAME,
strerror(-rightbusfd));
return rightbusfd;
}
err = ioctl(rightbusfd, RTSMT_RTIOC_INIT, &rightBusInit);
if (err) {
printf("error while RTSMT_RTIOC_INIT, %%s\\n",
strerror(-err));
close(rightbusfd);
return err;
}