Skip to content

Commit 6ca77a7

Browse files
chore: Update SilabsLCD::TurnOn and SilabsLCD::TurnOff functions
1 parent 1030738 commit 6ca77a7

File tree

1 file changed

+5
-2
lines changed
  • examples/platform/silabs/display

1 file changed

+5
-2
lines changed

examples/platform/silabs/display/lcd.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ CHIP_ERROR SilabsLCD::TurnOn(void)
274274
{
275275
sl_status_t status = SL_STATUS_OK;
276276
#if (SLI_SI91X_MCU_INTERFACE)
277-
status = sl_memlcd_power_on(sl_memlcd_get(), true);
277+
sl_memlcd_display_enable();
278+
sl_memlcd_power_on(sl_memlcd_get(), true);
279+
sl_memlcd_clear(sl_memlcd_get());
278280
#else
279281
status = sl_board_enable_display();
280282
#endif // SLI_SI91X_MCU_INTERFACE
@@ -296,7 +298,8 @@ CHIP_ERROR SilabsLCD::TurnOff(void)
296298
return CHIP_ERROR_INTERNAL;
297299
}
298300
#if (SLI_SI91X_MCU_INTERFACE)
299-
status = sl_memlcd_power_on(sl_memlcd_get(), false);
301+
sl_memlcd_power_on(sl_memlcd_get(), false);
302+
sl_memlcd_display_disable();
300303
#else
301304
status = sl_board_disable_display();
302305
#endif // SLI_SI91X_MCU_INTERFACE

0 commit comments

Comments
 (0)