Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of dgps by
Diff: handle/dataLocation.cpp
- Revision:
- 48:dc9269ce9a79
- Parent:
- 47:fd373c4ea831
--- a/handle/dataLocation.cpp Sat Apr 26 04:01:13 2014 +0000 +++ b/handle/dataLocation.cpp Sat Apr 26 04:03:20 2014 +0000 @@ -41,10 +41,11 @@ void LocHolder::add(LHType type,DataLocation newLoc){ // Set the current index to the current size //getI(type)=getI(type,LHIType_size); - inc(type); // Increment size unsigned int newSize=getI(type,LHIType_size)+1; getI(type,LHIType_size)=newSize>MAXNUMLOCS?MAXNUMLOCS:newSize; + // Increment type using new size + inc(type); // Assign current index getC(type,getI(type))=newLoc; }