Replace Tactility SystemEvents with new kernel implementation (#598)
TactilityKernel now has a system event API to replace the one from the Tactility subproject. It also implements several tests for it.
This commit is contained in:
committed by
GitHub
parent
6e55e71e67
commit
acb2f1d4c7
@@ -1,9 +1,10 @@
|
||||
#include <Tactility/settings/Time.h>
|
||||
|
||||
#include <Tactility/SystemEvents.h>
|
||||
#include <Tactility/Preferences.h>
|
||||
#include <Tactility/settings/SystemSettings.h>
|
||||
|
||||
#include <tactility/system_event.h>
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
#include <ctime>
|
||||
#endif
|
||||
@@ -36,7 +37,7 @@ void setTimeZone(const std::string& name, const std::string& code) {
|
||||
tzset();
|
||||
#endif
|
||||
|
||||
kernel::publishSystemEvent(kernel::SystemEvent::Time);
|
||||
system_event_emit(KERNEL_EVENT_TIME_CHANGED, nullptr, 0);
|
||||
}
|
||||
|
||||
std::string getTimeZoneName() {
|
||||
|
||||
Reference in New Issue
Block a user