Skip to content

Commit a0fa0b6

Browse files
committed
STM32 RTC : remove compilation warning with unused variable
1 parent 7b77e50 commit a0fa0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void rtc_write(time_t t)
270270

271271
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_LPTICKER_LPTIM
272272
/* Need to update LP_continuous_time value before new RTC time */
273-
uint32_t current_lp_time = rtc_read_lp();
273+
rtc_read_lp();
274274

275275
/* LP_last_RTC_time value is updated with the new RTC time */
276276
LP_last_RTC_time = timeStruct.Seconds + timeStruct.Minutes * 60 + timeStruct.Hours * 60 * 60;

0 commit comments

Comments
 (0)