Skip to content

Commit

Permalink
[Telink] restyled
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed May 13, 2024
1 parent 21ef77a commit 013c5b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/platform/telink/common/src/AppTaskCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ CHIP_ERROR AppTaskCommon::StartApp(void)
#endif

#ifdef CONFIG_BOOTLOADER_MCUBOOT
if (!chip::DeviceLayer::ConnectivityMgr().IsThreadProvisioned() && !chip::DeviceLayer::ConnectivityMgr().IsWiFiStationProvisioned())
if (!chip::DeviceLayer::ConnectivityMgr().IsThreadProvisioned() &&
!chip::DeviceLayer::ConnectivityMgr().IsWiFiStationProvisioned())
{
LOG_INF("Confirm image.");
OtaConfirmNewImage();
Expand Down Expand Up @@ -373,7 +374,8 @@ void AppTaskCommon::InitPwms()

void AppTaskCommon::LinkPwms(PwmManager & pwmManager)
{
#if CONFIG_WS2812_STRIP || CONFIG_BOARD_TLSR9118BDK40D // TLSR9118BDK40D EVK buttons located on 4th PWM channel (see tlsr9118bdk40d.overlay)
#if CONFIG_WS2812_STRIP || \
CONFIG_BOARD_TLSR9118BDK40D // TLSR9118BDK40D EVK buttons located on 4th PWM channel (see tlsr9118bdk40d.overlay)
pwmManager.linkPwm(PwmManager::EAppPwm_Red, 0);
pwmManager.linkPwm(PwmManager::EAppPwm_Green, 1);
pwmManager.linkPwm(PwmManager::EAppPwm_Blue, 2);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/telink/wifi/TelinkWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ CHIP_ERROR TelinkWiFiDriver::RevertConfiguration()
}

Status TelinkWiFiDriver::AddOrUpdateNetwork(ByteSpan ssid, ByteSpan credentials, MutableCharSpan & outDebugText,
uint8_t & outNetworkIndex)
uint8_t & outNetworkIndex)
{
outDebugText = {};
outNetworkIndex = 0;
Expand Down

0 comments on commit 013c5b0

Please sign in to comment.