1
0
Fork 0

[Core] Add OS detection callbacks (#21777)

This commit is contained in:
Andre Brait 2024-02-16 15:19:02 +01:00 committed by GitHub
parent 77e8867498
commit 80f3da36e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 440 additions and 61 deletions

View file

@ -137,6 +137,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef WPM_ENABLE
# include "wpm.h"
#endif
#ifdef OS_DETECTION_ENABLE
# include "os_detection.h"
#endif
static uint32_t last_input_modification_time = 0;
uint32_t last_input_activity_time(void) {
@ -741,4 +744,8 @@ void keyboard_task(void) {
#endif
led_task();
#ifdef OS_DETECTION_ENABLE
os_detection_task();
#endif
}