alan broad
/
carbon_v5_arm_studio
arm studio build
Revision 6:b2039a285d7f, committed 2018-08-07
- Comitter:
- alan1974
- Date:
- Tue Aug 07 17:56:23 2018 +0000
- Parent:
- 5:abfe25f0de33
- Child:
- 7:fba1e8fc7693
- Commit message:
- working as of Aug 7,2018
Changed in this revision
inc/commI2C.h | Show annotated file Show diff for this revision Revisions of this file |
src/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/inc/commI2C.h Mon Aug 06 19:11:02 2018 +0000 +++ b/inc/commI2C.h Tue Aug 07 17:56:23 2018 +0000 @@ -53,7 +53,7 @@ uint8_t txData[I2C_MAX_ACK_DATA]; //array for tx Data uint8_t joinAttemps; //max attempts to join network before quitting uint8_t appPort; //set app port (rev 0307) - uint8_t bResetLinkCCounter; //true to reset link threshold counter (rev 0307) + uint8_t linkThreshCnt; //set link threshold count, 0 == disable uint8_t bSetAdr; //not used uint8_t rxvd[PKT_UPSTRM_RSVD]; //rserved filler bytes uint8_t chksum; //chksum of all previous, last byte in pkt
--- a/src/main.cpp Mon Aug 06 19:11:02 2018 +0000 +++ b/src/main.cpp Tue Aug 07 17:56:23 2018 +0000 @@ -225,7 +225,7 @@ printNmvData(pNvmData); dot->setLogLevel((verbose) ? mts::MTSLog::TRACE_LEVEL : mts::MTSLog::TRACE_LEVEL); // TRACE_LEVEL , INFO_LEVEL } - dot->resetConfig(); //TEST !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + // dot->resetConfig(); //TEST !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // getStandbyFlag() should return the state of the standby flag directly from the processor // Standby flag: This bit is set by hardware and cleared only by a POR/PDR (power on reset/power down reset) or by setting the CSBF bit in the PWR power control register (PWR_CR) @@ -312,12 +312,13 @@ //rev 0307 parameters if(verbose)pc.printf("\n\r setting application port %d ",pUp->appPort); //appPort not used in rev < 0307 dot->setAppPort(pUp->appPort); - uint8_t linkFailcnt = dot->getLinkFailCount(); - if(verbose)pc.printf("\r\n lINK fail count %d\r\n",linkFailcnt); - if (pUp->bResetLinkCCounter){ - dot->setLinkFailCount(0); - if(verbose)pc.printf("\r\n reset link fail threshold to zero"); - } + uint8_t linkThresholdCnt = pUp->linkThreshCnt; + if(verbose)pc.printf("\r\n linkThreshCnt %d\r\n",linkThresholdCnt); + //if (pUp->bResetLinkCCounter){ + //dot->setLinkFailCount(0); + dot->setLinkCheckThreshold(linkThresholdCnt); + // if(verbose)pc.printf("\r\n reset link fail threshold to zero"); + //} if (pUp->dataLen == 0){ //datalen non zero? pAck->bXmitAttempted = 0; break;