Don't log for every interaction

This commit is contained in:
vishnukvmd 2024-02-24 11:04:32 +05:30
parent 190875a20e
commit 18e1c39c60

View file

@ -41,9 +41,11 @@ class MachineLearningController {
}
void onUserInteraction() {
_logger.info("User is interacting with the app");
_isUserInteracting = true;
_fireControlEvent();
if (!_isUserInteracting) {
_logger.info("User is interacting with the app");
_isUserInteracting = true;
_fireControlEvent();
}
_resetTimer();
}