Permalink
Browse files

compile, even on parts without analog

  • Loading branch information...
1 parent 5e01790 commit 3fca82e744deb57a419200a63f8377a967ef4658 WardCunningham committed Jul 25, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 analog.c
View
@@ -6,7 +6,11 @@
#include "analog.h"
+#if defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
static uint8_t aref = (1<<REFS0); // default to AREF = Vcc
+#else
+static uint8_t aref = 0;
+#endif
void analogReference(uint8_t mode)

0 comments on commit 3fca82e

Please sign in to comment.