Revert "Save 80B of flash and 8B of RAM and fix compiler warning:"

This commit is contained in:
PavelSindler 2018-07-17 11:28:44 +02:00 committed by GitHub
parent 5f529bd515
commit 77426b563a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 203 additions and 244 deletions
Firmware

View file

@ -1,9 +1,8 @@
//adc.c
#include "adc.h"
#include <stdio.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
uint8_t adc_state;
uint8_t adc_count;
@ -18,7 +17,7 @@ uint16_t adc_sim_mask;
void adc_init(void)
{
printf_P(PSTR("adc_init\n"));
printf(("adc_init\n"));
adc_sim_mask = 0x00;
ADCSRA |= (1 << ADPS2) | (1 << ADPS1) | (1 << ADPS0);
ADMUX |= (1 << REFS0);