Use BIT macros
This commit is contained in:
parent
47c1062e08
commit
9309efb3e0
@ -18,7 +18,7 @@ static uint8_t __code levels[] = {
|
|||||||
|
|
||||||
void kbled_init(void) {
|
void kbled_init(void) {
|
||||||
// Enable DAC used for KBLIGHT_ADJ
|
// Enable DAC used for KBLIGHT_ADJ
|
||||||
DACPDREG &= ~(1 << KBLED_DAC);
|
DACPDREG &= ~BIT(KBLED_DAC);
|
||||||
kbled_reset();
|
kbled_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ static uint8_t __code levels[] = {
|
|||||||
|
|
||||||
void kbled_init(void) {
|
void kbled_init(void) {
|
||||||
// Enable DAC used for KBLIGHT_ADJ
|
// Enable DAC used for KBLIGHT_ADJ
|
||||||
DACPDREG &= ~(1 << KBLED_DAC);
|
DACPDREG &= ~BIT(KBLED_DAC);
|
||||||
kbled_reset();
|
kbled_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user