From 81e34006a5d552a33f98d46bae61d9bd7150a2bb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Nov 2015 15:41:46 +1100 Subject: [PATCH] HAL_SITL: make available_memory() uint32_t --- libraries/AP_HAL_SITL/Util.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/AP_HAL_SITL/Util.h b/libraries/AP_HAL_SITL/Util.h index cd18517032..55b28a7f92 100644 --- a/libraries/AP_HAL_SITL/Util.h +++ b/libraries/AP_HAL_SITL/Util.h @@ -10,6 +10,14 @@ public: bool run_debug_shell(AP_HAL::BetterStream *stream) { return false; } + + /** + how much free memory do we have in bytes. + */ + uint32_t available_memory(void) override { + // SITL is assumed to always have plenty of memory. Return 128k for now + return 0x20000; + } }; #endif // __AP_HAL_SITL_UTIL_H__