make adc slower to stabelize values

This commit is contained in:
Julian Daube 2019-02-13 18:31:11 +01:00 committed by Julian Daube
parent b9a402d64b
commit 917fac440f
2 changed files with 2 additions and 2 deletions

View File

@ -20,5 +20,5 @@ void adc_init(uint8_t * channels) {
// adc.channel_map = channels;
ADMUX = channels[0];
ADCSRA = /*(1<<ADATE) | */ (1<<ADEN); // enable adc, maximum prescaler value
ADCSRA = /*(1<<ADATE) | */ (1<<ADEN) | 2; // enable adc, maximum prescaler value
}

View File

@ -58,7 +58,7 @@ volatile enum {
static inline void comm_service()
{
static uint8_t count = 0;
static uint16_t temp = 0xFF;
static uint16_t temp = 0xFFFF;
if (USISR & (1<<USIOIF))
{