- `newMid2()` now uses the updated `findNextFree(..., ...)` from niknaks
This commit is contained in:
Tristan B. Velloza Kildaire 2023-10-15 17:03:45 +02:00
parent ae0235388a
commit c16b8a4b06
1 changed files with 6 additions and 1 deletions

View File

@ -132,7 +132,12 @@ public class CoapClient
// If none was available for re-use then find next available
// ... free and use that (also don't forget to register it)
ushort newMid = findNextFree(inUse);
ushort newMid;
bool gotAvailable = findNextFree(inUse, newMid);
// FIXME: Add a thing which does something
// ... if `gotAvailable` is false
this.mids[newMid] = StopWatch(AutoStart.yes);
return newMid;