void InitSpeeds(void) { uchar p; LoadPorts(); LoadLocalDisable(); LoadMajorInDelay(); LoadMinorInDelay(); LoadCache(&chCorrectLimit); LoadCache(&chOutputDelay); for (p=0; p<bPORTS; p++) { if (mppoPorts[p].ibBaud >= bBAUDS) { mppoPorts[p].ibBaud = 0; SetDefaultDelay(p); } if (mppoPorts[p].ibParity >= bPARITYS) mppoPorts[p].ibParity = 0; if (mppoPorts[p].enStream >= bSTREAMS) mppoPorts[p].enStream = STR_SLAVEESC; SetSpeed(p); CheckCorrectLimit(p); } }
void InitSpeeds(void) { uchar p; LoadPorts(); LoadLocalDisable(); LoadMajorInDelay(); LoadMinorInDelay(); LoadCache(&chCorrectLimit); LoadCache(&chOutputDelay); LoadCache(&chTxDelay); for (p=0; p<bPORTS; p++) { if (mppoPorts[p].ibBaud >= bBAUDS) { mppoPorts[p].ibBaud = 0; SetDefaultDelay(p); } if (mppoPorts[p].ibParity >= bPARITYS) mppoPorts[p].ibParity = 0; if (mppoPorts[p].enStream >= bSTREAMS) mppoPorts[p].enStream = STR_SLAVEESC; SetSpeed(p); CheckCorrectLimit(p); } #ifdef NO_DISPLAY mppoPorts[0].ibBaud = 3; mppoPorts[0].ibParity = 0; mppoPorts[0].enStream = STR_SLAVEESC; SetDefaultDelay(0); SetSpeed(0); mpboLocalDisable[0] = false; SaveLocalDisable(); #endif }