Re: panic: invalid bcd 194

From: Kurt Jaeger <pi_at_opsec.eu>
Date: Tue, 2 Jan 2018 16:26:31 +0100
Hi!

> I've added one more printf to see what is coming as year from BCD. The code
> is attached below and bcd.year comes out as 24 (decimal) which is 0x18. I.e. it
> seems that the year from 2018 is stored in hex as 0x18, or?

It's actually BCD code:

https://en.wikipedia.org/wiki/Binary-coded_decimal

-- 
pi_at_opsec.eu            +49 171 3101372                         2 years to go !
Received on Tue Jan 02 2018 - 14:26:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC