Skip to content

Commit 2de68b6

Browse files
MaochenWang1mmahadevan108
authored andcommitted
conn_fwloader: only write CAU temperature for Wi-Fi case
Only write CAU temperature for downloading Wi-Fi FW, avoid affecting the BT only central_ht/peripheral_ht case. Signed-off-by: Maochen Wang <[email protected]>
1 parent 0c82aea commit 2de68b6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

mcux/mcux-sdk-ng/components/conn_fwloader/fsl_loader_utils.c

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,9 +1581,12 @@ status_t load_service(LOAD_Target_Type loadTarget, uint32_t sourceAddr)
15811581
(void)__OtpDeInit();
15821582
}
15831583

1584-
cau_temperature_enable_impl();
1585-
cau_pmip_v33_enable();
1586-
cau_temperature_write_to_firmware_impl();
1584+
if (LOAD_WIFI_FIRMWARE == loadTarget)
1585+
{
1586+
cau_temperature_enable_impl();
1587+
cau_pmip_v33_enable();
1588+
cau_temperature_write_to_firmware_impl();
1589+
}
15871590

15881591
if (status == kStatus_Success)
15891592
{
@@ -1674,9 +1677,12 @@ static status_t load_service_monolithic(LOAD_Target_Type loadTarget, uint32_t so
16741677
(void)__OtpDeInit();
16751678
}
16761679

1677-
cau_temperature_enable_impl();
1678-
cau_pmip_v33_enable();
1679-
cau_temperature_write_to_firmware_impl();
1680+
if (LOAD_WIFI_FIRMWARE == loadTarget)
1681+
{
1682+
cau_temperature_enable_impl();
1683+
cau_pmip_v33_enable();
1684+
cau_temperature_write_to_firmware_impl();
1685+
}
16801686

16811687
if (status == kStatus_Success)
16821688
{

0 commit comments

Comments
 (0)