Skip to content

Commit 12b1417

Browse files
committed
Fix
1 parent 9389351 commit 12b1417

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/displayapp/screens/SystemInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen4() {
228228

229229
auto nb = uxTaskGetSystemState(tasksStatus, maxTaskCount, nullptr);
230230
std::sort(tasksStatus, tasksStatus + nb, sortById);
231-
232-
for (uint8_t i = 0; i < nb; i++) {
231+
for (uint8_t i = 0; i < nb && i < maxTaskCount; i++) {
233232

234233
lv_table_set_cell_value(infoTask, i + 1, 0, std::to_string(tasksStatus[i].xTaskNumber).c_str());
235234
lv_table_set_cell_value(infoTask, i + 1, 1, tasksStatus[i].pcTaskName);

0 commit comments

Comments
 (0)