Skip to content

Commit fdb1090

Browse files
fix warning of no return
1 parent 2c10b93 commit fdb1090

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/pal_mbed_os_adaptation.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ static const mbed_error_status_t function_not_implemented = MBED_MAKE_ERROR(MBED
3232
MBED_WEAK PalUartState_t PalUartGetState(PalUartId_t id)
3333
{
3434
NOT_IMPLEMENTED("PalUartGetState");
35-
3635
return PAL_UART_STATE_UNINIT;
3736
}
3837

@@ -61,7 +60,6 @@ MBED_WEAK void PalNvmInit(PalNvmCback_t actCback)
6160
MBED_WEAK PalNvmState_t PalNvmGetState()
6261
{
6362
NOT_IMPLEMENTED("PalNvmGetState");
64-
6563
return PAL_NVM_STATE_UNINIT;
6664
}
6765

@@ -111,7 +109,8 @@ MBED_WEAK void PalRtcDisableCompareIrq()
111109

112110
MBED_WEAK uint32_t PalRtcCounterGet()
113111
{
114-
return osKernelGetTickCount();
112+
NOT_IMPLEMENTED("PalRtcDisableCompareIrq");
113+
return 0;
115114
}
116115

117116
MBED_WEAK void PalRtcCompareSet(uint32_t value)
@@ -122,7 +121,6 @@ MBED_WEAK void PalRtcCompareSet(uint32_t value)
122121
MBED_WEAK uint32_t PalRtcCompareGet()
123122
{
124123
NOT_IMPLEMENTED("PalRtcCompareGet");
125-
126124
return 0;
127125
}
128126

@@ -131,7 +129,6 @@ MBED_WEAK uint32_t PalRtcCompareGet()
131129
MBED_WEAK bool_t PalSysIsBusy()
132130
{
133131
NOT_IMPLEMENTED("PalSysIsBusy");
134-
135132
return 0;
136133
}
137134

0 commit comments

Comments
 (0)