reticulatedpines / magiclantern_simplified

A Git based version of Magic Lantern, for those unwilling or unable to work using Mercurial. The vast majority of branches have been removed, with those thought to be important brought in individually and merged.
GNU General Public License v2.0
147 stars 51 forks source link

RP: enable taskmon #26

Closed coon42 closed 2 years ago

coon42 commented 2 years ago

This PR enables the following menu entries in Debug menu: Show tasks, Show CPU usage and Show GUI events

For this the following defines are set in features.h:

CONFIG_TSKMON
FEATURE_SHOW_TASKS
FEATURE_SHOW_CPU_USAGE
FEATURE_SHOW_GUI_EVENTS

In order to get this working also an invalid stub for _get_task_info_by_id is fixed and task_max stub is added.

Taskmanager is working as expected. However, there is a sporadic glitch on the percentage row which leads into displaying random characters sometimes (see https://www.youtube.com/watch?v=wMBgHcIxlRs). It's probably some issue of bmp_printf.