AP_HAL_VRBRAIN: fix typo using comma operator

We want to return mallinfo().fordblks, not the struct using the comma
operator with a non-existing fordblks variable.
This commit is contained in:
Lucas De Marchi 2015-11-05 15:48:32 -02:00
parent 0d95a9c41d
commit e9c6702269
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ bool VRBRAINUtil::get_system_id(char buf[40])
*/
uint32_t VRBRAINUtil::available_memory(void)
{
return mallinfo(),fordblks;
return mallinfo().fordblks;
}
#endif // CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN