Skip to content

Commit

Permalink
formatting 2
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Mar 26, 2022
1 parent 9134402 commit af96409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantum/via.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void eeconfig_update_rgb_matrix(void);
// Can be called in an overriding via_init_kb() to test if keyboard level code usage of
// EEPROM is invalid and use/save defaults.
bool via_eeprom_is_valid(void) {
char *p = QMK_BUILDDATE; // e.g. "2019-11-05-11:29:54"
char * p = QMK_BUILDDATE; // e.g. "2019-11-05-11:29:54"
uint8_t magic0 = ((p[2] & 0x0F) << 4) | (p[3] & 0x0F);
uint8_t magic1 = ((p[5] & 0x0F) << 4) | (p[6] & 0x0F);
uint8_t magic2 = ((p[8] & 0x0F) << 4) | (p[9] & 0x0F);
Expand All @@ -83,7 +83,7 @@ bool via_eeprom_is_valid(void) {
// Sets VIA/keyboard level usage of EEPROM to valid/invalid
// Keyboard level code (eg. via_init_kb()) should not call this
void via_eeprom_set_valid(bool valid) {
char *p = QMK_BUILDDATE; // e.g. "2019-11-05-11:29:54"
char * p = QMK_BUILDDATE; // e.g. "2019-11-05-11:29:54"
uint8_t magic0 = ((p[2] & 0x0F) << 4) | (p[3] & 0x0F);
uint8_t magic1 = ((p[5] & 0x0F) << 4) | (p[6] & 0x0F);
uint8_t magic2 = ((p[8] & 0x0F) << 4) | (p[9] & 0x0F);
Expand Down

0 comments on commit af96409

Please sign in to comment.