mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 09:17:35 +08:00
Nuttx changed CONFIG_DRAM_SIZE to CONFIG_RAM_SIZE
This commit is contained in:
committed by
Lorenz Meier
parent
b6362ed87c
commit
ff0e810b55
@@ -240,7 +240,7 @@ float LoadMon::_ram_used()
|
||||
float load = (float)mem.uordblks / mem.arena;
|
||||
|
||||
// Check for corruption of the allocation counters
|
||||
if ((mem.arena > CONFIG_DRAM_SIZE) || (mem.fordblks > CONFIG_DRAM_SIZE)) {
|
||||
if ((mem.arena > CONFIG_RAM_SIZE) || (mem.fordblks > CONFIG_RAM_SIZE)) {
|
||||
load = 1.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user