diff --git a/libuavcan/include/uavcan/util/map.hpp b/libuavcan/include/uavcan/util/map.hpp index c011359667..814dd517a0 100644 --- a/libuavcan/include/uavcan/util/map.hpp +++ b/libuavcan/include/uavcan/util/map.hpp @@ -478,6 +478,7 @@ void MapBase::removeAll() template typename MapBase::KVPair* MapBase::getByIndex(unsigned index) { +#if !UAVCAN_TINY // Checking the static storage for (unsigned i = 0; i < num_static_entries_; i++) { @@ -490,6 +491,7 @@ typename MapBase::KVPair* MapBase::getByIndex(unsigned i index--; } } +#endif // Slowly crawling through the dynamic storage KVGroup* p = list_.get();