diff --git a/libspark/init.cpp b/libspark/init.cpp index d14c0ed..1e6ac3b 100644 --- a/libspark/init.cpp +++ b/libspark/init.cpp @@ -271,10 +271,8 @@ void init_td_api() { cCpuFreqManager f; f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */ -#ifdef BOXMODEL_SPARK7162 create_input_devices(); start_inmux_thread(); -#endif /* this is a strange hack: the drivers seem to only work correctly after * demux0 has been used once. After that, we can use demux1,2,... */ @@ -294,10 +292,8 @@ void init_td_api() close(dmx); } } -#ifdef BOXMODEL_SPARK7162 else reopen_input_devices(); -#endif initialized = true; lt_info("%s end\n", __FUNCTION__); } @@ -305,11 +301,9 @@ void init_td_api() void shutdown_td_api() { lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized); -#ifdef BOXMODEL_SPARK7162 if (initialized) { stop_inmux_thread(); close_input_devices(); } -#endif initialized = false; }