summaryrefslogtreecommitdiff
path: root/io-module/mts-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r--io-module/mts-io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 069e84b..83c3ddf 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -45,6 +45,7 @@
#include "mts_io_module.h"
#include "mts_io.h"
#include "buttons.h"
+#include "mts_supercap.h"
#define PLATFORM_NAME "mts-io"
@@ -1217,6 +1218,11 @@ static int __init mts_io_init(void)
// start general buttons processing
init_buttons();
+ //start supercap monitor worker if SUPERCAP CAPA is true
+ if(DEVICE_CAPA(id_eeprom.capa, CAPA_SUPERCAP)) {
+ init_supercap_worker();
+ }
+
/* init timers */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)
timer_setup(&radio_reset_timer, radio_reset_timer_callback, 0);