alan broad
/
carbon_v5_arm_studio
arm studio build
Diff: src/main.cpp
- Revision:
- 6:b2039a285d7f
- Parent:
- 5:abfe25f0de33
- Child:
- 7:fba1e8fc7693
diff -r abfe25f0de33 -r b2039a285d7f src/main.cpp --- 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;