mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
HAL_PX4: make available_memory() uint32_t
This commit is contained in:
parent
8a4c0593f2
commit
ac1c0bba15
@ -124,14 +124,9 @@ bool PX4Util::get_system_id(char buf[40])
|
||||
/**
|
||||
how much free memory do we have in bytes.
|
||||
*/
|
||||
uint16_t PX4Util::available_memory(void)
|
||||
uint32_t PX4Util::available_memory(void)
|
||||
{
|
||||
struct mallinfo mem;
|
||||
mem = mallinfo();
|
||||
if (mem.fordblks > 0xFFFF) {
|
||||
return 0xFFFF;
|
||||
}
|
||||
return mem.fordblks;
|
||||
return mallinfo().fordblks;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
*/
|
||||
bool get_system_id(char buf[40]);
|
||||
|
||||
uint16_t available_memory(void);
|
||||
uint32_t available_memory(void) override;
|
||||
|
||||
/*
|
||||
return a stream for access to nsh shell
|
||||
|
Loading…
Reference in New Issue
Block a user