Fix toBCD(), RTC read date should work right again.

This commit is contained in:
gocha 2010-04-03 23:11:48 +00:00
parent 90ff47e8fe
commit 7bca51aa57
1 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,10 @@ SFORMAT SF_RTC[]={
static const u8 kDefaultCmdBitsSize[8] = {8, 8, 56, 24, 0, 24, 8, 8};
#define toBCD(x) ((x / 10) << 4) | (x % 10);
static inline u8 toBCD(u8 x)
{
return ((x / 10) << 4) | (x % 10);
}
bool moviemode=false;