- Replace dynamic allocation with compile-time fixed arrays (tags[UWB_TAG_COUNT], anchors[MAX_ANCHORS]) - Restore uwb.begin() instead of testConnection() for proper UWB initialization - Add I2C bus reset (Wire.end()/Wire.begin()) to prevent bus conflicts during multi-device initialization - Use compile-time branching (#if DEVICE_TYPE) instead of runtime checks for better performance - Simplify display logic to directly access device arrays without null pointer complexity - Remove unused dynamic memory management and cleanup functions - Fix device counting to use proper array sizes (UWB_TAG_COUNT, MAX_ANCHORS) Resolves crash during initialization when multiple devices start simultaneously. Display now properly shows found anchors/tags with distances and RSSI values. |
||
|---|---|---|
| .. | ||
| config | ||
| main.cpp | ||