andrzej-kaczmarek opened a new pull request #2561: URL: https://github.com/apache/mynewt-core/pull/2561
os_cputime uses LLT internally which is a 37-bit timer at 1MHz and thus it wraps around later than 32-bit os_cputime at 32768Hz. This mean safter os_cputime wraps back to 0 any comparison between LLT value converted from os_cputime and an actual LLT value will fail. This fixes the problem by wrapping LLT at the same time as os_cputime. LLT value at which os_cputime wraps back to 0 is 0x1e84800000 so once LLT hits that value we also wrap it back to 0. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org