@@ -20,7 +20,7 @@ LOG_MODULE_REGISTER(thingy91_golioth, LOG_LEVEL_DBG);
2020#include <samples/common/sample_credentials.h>
2121#include <zephyr/kernel.h>
2222
23- #if defined( CONFIG_SOC_SERIES_NRF91X )
23+ #ifdef CONFIG_SOC_SERIES_NRF91X
2424#include <modem/lte_lc.h>
2525#endif
2626
@@ -32,7 +32,7 @@ LOG_MODULE_REGISTER(thingy91_golioth, LOG_LEVEL_DBG);
3232
3333/* Current firmware version; update in VERSION */
3434static const char * _current_version =
35- STRINGIFY (APP_VERSION_MAJOR ) "." STRINGIFY (APP_VERSION_MINOR ) "." STRINGIFY (APP_PATCHLEVEL );
35+ STRINGIFY (APP_VERSION_MAJOR ) "." STRINGIFY (APP_VERSION_MINOR ) "." STRINGIFY (APP_PATCHLEVEL );
3636
3737static struct golioth_client * client ;
3838K_SEM_DEFINE (connected , 0 , 1 );
@@ -47,8 +47,7 @@ void wake_system_thread(void)
4747 k_wakeup (_system_thread );
4848}
4949
50- static void on_client_event (struct golioth_client * client ,
51- enum golioth_client_event event ,
50+ static void on_client_event (struct golioth_client * client , enum golioth_client_event event ,
5251 void * arg )
5352{
5453 bool is_connected = (event == GOLIOTH_CLIENT_EVENT_CONNECTED );
@@ -74,7 +73,6 @@ static void start_golioth_client(void)
7473 /* Initialize DFU components */
7574 golioth_fw_update_init (client , _current_version );
7675
77-
7876 /*** Call Golioth APIs for other services in dedicated app files ***/
7977
8078 /* Observe State service data */
@@ -90,7 +88,7 @@ static void start_golioth_client(void)
9088 app_rpc_register (client );
9189}
9290
93- #if defined( CONFIG_SOC_SERIES_NRF91X )
91+ #ifdef CONFIG_SOC_SERIES_NRF91X
9492
9593static void lte_handler (const struct lte_lc_evt * const evt )
9694{
@@ -110,7 +108,7 @@ static void lte_handler(const struct lte_lc_evt *const evt)
110108 }
111109}
112110
113- #endif /* CONFIG_SOC_NRF9160 */
111+ #endif /* CONFIG_SOC_SERIES_NRF91X */
114112
115113#ifdef CONFIG_MODEM_INFO
116114static void log_modem_firmware_version (void )
@@ -153,7 +151,7 @@ int main(void)
153151 /* Get system thread id so loop delay change event can wake main */
154152 _system_thread = k_current_get ();
155153
156- #if defined( CONFIG_SOC_SERIES_NRF91X )
154+ #ifdef CONFIG_SOC_SERIES_NRF91X
157155 /* Start LTE asynchronously if the nRF9160 is used.
158156 * Golioth Client will start automatically when LTE connects
159157 */
@@ -175,7 +173,7 @@ int main(void)
175173
176174 /* Block until connected to Golioth */
177175 k_sem_take (& connected , K_FOREVER );
178- #endif /* CONFIG_SOC_NRF9160 */
176+ #endif /* CONFIG_SOC_SERIES_NRF91X */
179177
180178 err = app_buzzer_init ();
181179 if (err ) {
0 commit comments