Skip to content

Commit

Permalink
Fix bad test flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzooone authored and felixjones committed Nov 29, 2023
1 parent aa7d6e5 commit e4a670f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#define STAT_POWER (0x80)

/* Time flags */
#define TM_TEST (0x80)
#define TM_TEST (0x00800000)

/* Init results */
#define INIT_OK (0x00)
Expand All @@ -51,7 +51,7 @@
// Mask out data not needed from date and time
#define PM_TIME_FLAG ((unsigned int)0x00000080)
#define HOURS_MASK ((unsigned int)0x000000BF)
#define TIME_MASK (0x007F7FBF)
#define TIME_MASK (0x00FF7FBF)
#define DATE_MASK (0x073F1FFF)

// Amount of iterations to wait after writing the data,
Expand Down

0 comments on commit e4a670f

Please sign in to comment.