HAL_SITL: make available_memory() uint32_t

This commit is contained in:
Andrew Tridgell 2015-11-05 15:41:46 +11:00
parent ac1c0bba15
commit 81e34006a5
1 changed files with 8 additions and 0 deletions

View File

@ -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__