tests-mbed_hal-rtc patch to match IAR compilation issue

pull/13016/head
jeromecoutant 2020-05-26 09:25:36 +02:00
parent 9a8c9e2c29
commit ccfb099255
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ void rtc_write_read_test()
{ {
RealTimeClock::init(); RealTimeClock::init();
for (auto init_val = RealTimeClock::time_point(100s); init_val < RealTimeClock::time_point(400s); init_val += 100s) { /* NB: IAR compilation issue with "auto init_val = RealTimeClock::time_point(100s)" */
for (auto init_val = RealTimeClock::time_point(seconds(100)); init_val < RealTimeClock::time_point(400s); init_val += 100s) {
core_util_critical_section_enter(); core_util_critical_section_enter();
RealTimeClock::write(init_val); RealTimeClock::write(init_val);