Browse Source

HAL_VRBRAIN: make available_memory() uint32_t

mission-4.1.18
Andrew Tridgell 9 years ago
parent
commit
567ea0e420
  1. 9
      libraries/AP_HAL_VRBRAIN/Util.cpp
  2. 2
      libraries/AP_HAL_VRBRAIN/Util.h

9
libraries/AP_HAL_VRBRAIN/Util.cpp

@ -132,14 +132,9 @@ bool VRBRAINUtil::get_system_id(char buf[40]) @@ -132,14 +132,9 @@ bool VRBRAINUtil::get_system_id(char buf[40])
/**
how much free memory do we have in bytes.
*/
uint16_t VRBRAINUtil::available_memory(void)
uint32_t VRBRAINUtil::available_memory(void)
{
struct mallinfo mem;
mem = mallinfo();
if (mem.fordblks > 0xFFFF) {
return 0xFFFF;
}
return mem.fordblks;
return mallinfo(),fordblks;
}
#endif // CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN

2
libraries/AP_HAL_VRBRAIN/Util.h

@ -22,7 +22,7 @@ public: @@ -22,7 +22,7 @@ public:
*/
bool get_system_id(char buf[40]);
uint16_t available_memory(void);
uint32_t available_memory(void) override;
private:
int _safety_handle;

Loading…
Cancel
Save