Commit 546676e8 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Adam Wujek

tools: wr-streamers, dont use wbgen read macro for 32-bit register

parent 35389097
......@@ -154,8 +154,7 @@ int read_reset_time(struct cmd_desc *cmdd, struct atom *atoms)
}
val = iomemr32(wrstm->is_be, ptr->SSCR2);
res_time_sec = (time_t)(WR_STREAMERS_SSCR2_RST_TS_TAI_LSB_R(val) +
LEAP_SECONDS);//to UTC
res_time_sec = (time_t)(val + LEAP_SECONDS);//to UTC
cur_time = time(NULL);
reset_time_elapsed = difftime(cur_time,res_time_sec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment