From 452d70663da51a3fb1a0846a65f86162d2cfb3e4 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Tue, 11 Mar 2014 11:01:54 +0200 Subject: [PATCH] config: fix config to work without system controller plugin. Change-Id: I3de23151471bb9b51db57b656124be34e40a8c42 --- packaging.in/murphy.lua | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packaging.in/murphy.lua b/packaging.in/murphy.lua index 045c7dd..ae782f8 100644 --- a/packaging.in/murphy.lua +++ b/packaging.in/murphy.lua @@ -368,17 +368,19 @@ end -- Night mode general handlers -sink.lua { - name = "nightmode_homescreen", - inputs = { owner = mdb.select.select_night_mode }, - initiate = function(self) - -- data = mdb.select.select_night_mode.single_value - return true - end, - update = function(self) - send_night_mode_to_home_screen() - end -} +if with_system_controller then + sink.lua { + name = "nightmode_homescreen", + inputs = { owner = mdb.select.select_night_mode }, + initiate = function(self) + -- data = mdb.select.select_night_mode.single_value + return true + end, + update = function(self) + send_night_mode_to_home_screen() + end + } +end -- Driving mode processing chain -- 2.7.4