82
82
#define APP_EVENT_QUEUE_SIZE 10
83
83
#define EXAMPLE_VENDOR_ID 0xcafe
84
84
85
- #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917) ))
85
+ #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)))
86
86
#define SYSTEM_STATE_LED 0
87
87
#endif // ENABLE_WSTK_LEDS
88
88
#define APP_FUNCTION_BUTTON 0
@@ -104,7 +104,7 @@ TimerHandle_t sLightTimer;
104
104
TaskHandle_t sAppTaskHandle ;
105
105
QueueHandle_t sAppEventQueue ;
106
106
107
- #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917) ))
107
+ #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)))
108
108
LEDWidget sStatusLED ;
109
109
#endif // ENABLE_WSTK_LEDS
110
110
@@ -270,7 +270,7 @@ CHIP_ERROR BaseApplication::Init()
270
270
ConfigurationMgr ().LogDeviceConfig ();
271
271
272
272
OutputQrCode (true /* refreshLCD at init*/ );
273
- #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917) ))
273
+ #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)))
274
274
LEDWidget::InitGpio ();
275
275
sStatusLED .Init (SYSTEM_STATE_LED);
276
276
#endif // ENABLE_WSTK_LEDS
@@ -321,7 +321,7 @@ void BaseApplication::FunctionEventHandler(AppEvent * aEvent)
321
321
bool BaseApplication::ActivateStatusLedPatterns ()
322
322
{
323
323
bool isPatternSet = false ;
324
- #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917) ))
324
+ #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)))
325
325
#ifdef MATTER_DM_PLUGIN_IDENTIFY_SERVER
326
326
if (gIdentify .mActive )
327
327
{
@@ -427,7 +427,7 @@ void BaseApplication::LightEventHandler()
427
427
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
428
428
429
429
#if defined(ENABLE_WSTK_LEDS)
430
- #if (defined( SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917))
430
+ #ifdef SL_CATALOG_SIMPLE_LED_LED1_PRESENT
431
431
// Update the status LED if factory reset has not been initiated.
432
432
//
433
433
// If system has "full connectivity", keep the LED On constantly.
@@ -563,7 +563,7 @@ void BaseApplication::StartFactoryResetSequence()
563
563
StartStatusLEDTimer ();
564
564
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
565
565
566
- #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917) ))
566
+ #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)))
567
567
// Turn off all LEDs before starting blink to make sure blink is
568
568
// co-ordinated.
569
569
sStatusLED .Set (false );
@@ -596,7 +596,7 @@ void BaseApplication::StartStatusLEDTimer()
596
596
597
597
void BaseApplication::StopStatusLEDTimer ()
598
598
{
599
- #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917) ))
599
+ #if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)))
600
600
sStatusLED .Set (false );
601
601
#endif // ENABLE_WSTK_LEDS
602
602
0 commit comments