Skip to content

Commit

Permalink
Use uint8_t only.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Nov 4, 2021
1 parent e7050b0 commit 5ef5b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ static inline void adc_start();
///////////////////////////////////////////////////////////////////////////////

void diag_init() {
ts_offset = boot_signature_byte_get(0x0002); // see datasheet
ts_gain = boot_signature_byte_get(0x0003); // see datasheet
ts_offset = boot_signature_byte_get(0x02); // see datasheet
ts_gain = boot_signature_byte_get(0x03); // see datasheet

ADCSRA = (1 << ADIE) | (1 << ADEN); // enable ADC interrupt, enable ADC
ADCSRA |= 0x5; // prescaler 32×
Expand Down

0 comments on commit 5ef5b53

Please sign in to comment.