This commit is contained in:
Олег Бородин
2024-08-22 04:14:51 +02:00
parent fbd0a7e6e8
commit aee7e32bf0
9 changed files with 263 additions and 90 deletions

2
adc.c
View File

@@ -37,7 +37,7 @@ uint16_t adc_read(uint8_t channel) {
uint16_t hval = (uint16_t)ADCH;
hval = (hval << 8) & 0xFF00;
lval = lval & 0x00FF;
return hval | lval;
return (hval | lval);
}