From 479b83eb81ea0debce917149197989d88613f822 Mon Sep 17 00:00:00 2001 From: rafspiny Date: Thu, 3 Aug 2023 11:57:26 +0200 Subject: [PATCH] Other minor changes --- src/modules/convertible/dbus_acceleration.c | 15 +++++++-------- src/modules/convertible/e_mod_main.c | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/modules/convertible/dbus_acceleration.c b/src/modules/convertible/dbus_acceleration.c index badee37a3..c15ba3933 100644 --- a/src/modules/convertible/dbus_acceleration.c +++ b/src/modules/convertible/dbus_acceleration.c @@ -14,7 +14,7 @@ DbusAccelerometer* sensor_proxy_init() { // Initialise DBUS component - if (accelerometer_dbus != NULL) + if (accelerometer_dbus) { INF("We already have a struct filled"); return accelerometer_dbus; @@ -24,7 +24,7 @@ sensor_proxy_init() // The next line is probably redundant accelerometer_dbus->orientation = undefined; - + INF("Getting dbus interfaces"); accelerometer_dbus->sensor_proxy = get_dbus_interface(EFL_DBUS_ACC_IFACE); accelerometer_dbus->sensor_proxy_properties = get_dbus_interface(ELDBUS_FDO_INTERFACE_PROPERTIES); @@ -348,15 +348,14 @@ _is_device_a_touch_pointer(int dev_counter, int num_properties, char **iterator) int is_correct_device = EINA_FALSE; for (int i=0; idir); elm_theme_extension_add(NULL, theme_overlay_path); - econvertible_config_init(NULL); + econvertible_config_init(); // Config DBus DbusAccelerometer *accelerometer = sensor_proxy_init(); @@ -290,7 +290,7 @@ e_modapi_init(E_Module *m) ERR("Error: could not add the signal handler for PropertiesChanged"); // Screen related part - E_Zone *zone = NULL; + E_Zone *zone; // Initialise screen part DBG("Looking for the main screen");