Skip to content

Commit

Permalink
[Telink] restyled
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed Oct 12, 2023
1 parent 2e3a75a commit 41f02ea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/platform/telink/common/src/AppTaskCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ void AppTaskCommon::ChipEventHandler(const ChipDeviceEvent * event, intptr_t /*
case DeviceEventType::kDnssdInitialized:
#if CONFIG_CHIP_OTA_REQUESTOR
InitBasicOTARequestor();
if (GetRequestorInstance()->GetCurrentUpdateState() == Clusters::OtaSoftwareUpdateRequestor::OTAUpdateStateEnum::kIdle) {
if (GetRequestorInstance()->GetCurrentUpdateState() == Clusters::OtaSoftwareUpdateRequestor::OTAUpdateStateEnum::kIdle)
{
#endif
#ifdef CONFIG_BOOTLOADER_MCUBOOT
OtaConfirmNewImage();
Expand Down
2 changes: 1 addition & 1 deletion src/platform/telink/BLEManagerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class InternalScanCallback : public DeviceLayer::NetworkCommissioning::ThreadDri
{
mBLEManagerImpl->StartAdvertisingProcess();
#ifdef CONFIG_BOOTLOADER_MCUBOOT
OtaConfirmNewImage();
OtaConfirmNewImage();
#endif /* CONFIG_BOOTLOADER_MCUBOOT */
};

Expand Down
2 changes: 1 addition & 1 deletion src/platform/telink/OTAUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ void InitBasicOTARequestor();
/**
* Confirm or revert new image in MCUBoot.
*/
void OtaConfirmNewImage();
void OtaConfirmNewImage();
1 change: 1 addition & 0 deletions src/platform/telink/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ chip_inet_config_enable_ipv4 = false
declare_args() {
# Enable factory data support
chip_enable_factory_data = false

# Enable Zephyr application to be booted by MCUboot
chip_enable_bootloader_mcuboot = false
}

0 comments on commit 41f02ea

Please sign in to comment.