alan broad
/
carbon_v5_arm_studio
arm studio build
Diff: src/wbit_util.cpp
- Revision:
- 17:74d60177c6b6
- Parent:
- 14:fc836a5a5d2f
- Child:
- 22:034c134f17c7
--- a/src/wbit_util.cpp Sun Jan 20 15:19:57 2019 +0000 +++ b/src/wbit_util.cpp Fri Jan 25 01:46:26 2019 +0000 @@ -71,8 +71,9 @@ if(verbose)pc.printf("\r\n************************************************************\r\n"); } //============================================================================== -//printNvmABPData +//printNvmABPData --- OLD CODE //============================================================================== +/* void printNvmABPData(nvmABP *pNvmABP){ uint8_t i; if(verbose){ @@ -89,7 +90,8 @@ pc.printf(" %x",pNvmABP->devAdr[i]); } if(verbose)pc.printf("\r\n************************************************************\r\n"); -} +} +*/ //============================================================================== //getChkSum //compute chksum @@ -142,6 +144,7 @@ printNmvData(pNvm); return dot->nvmWrite(NVM_ADDR_OTAA,pNvm,sizeof(nvm)); } +/* //============================================================================== //nvmWriteABP //write nvmABPData struc to nvm memory TODO: WRITE PROCEDUREES @@ -154,6 +157,7 @@ printNvmABPData(pNvmABP); return dot->nvmWrite(NVM_ADDR_ABP,pNvmABP,sizeof(nvmABP)); } +*/ //============================================================================== //nvmRestorekeys //restore OTAA hard coded keys to nvm and also logdisplay enable/disable @@ -192,10 +196,11 @@ } //============================================================================== -//nvmReadABP +//nvmReadABP ------------ OLD CODE //- read nvmDataABP struc from nvm memory //- if bad chksum then default to hard code network keys //============================================================================== +/* bool nvmReadABP(nvmABP *pNvmABP){ dot->nvmRead(NVM_ADDR_ABP,pNvmABP,sizeof(nvmABP)); //uint8_t chksum = getNvmABPChkSum(pNvmABP); @@ -208,6 +213,7 @@ } return false; } +*/ //============================================================================ uint8_t join_network_attempts_wbit() {