summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--StripClock.c2
-rw-r--r--ds1307.c1
3 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5a3e5aa..bd93e81 100644
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,8 @@
# MCU name
-MCU = attiny2313a
-AVRDUDE_MCU = t2313
+MCU = attiny4313
+AVRDUDE_MCU = t4313
# Main Oscillator Frequency
# This is only used to define F_OSC in all assembler and c-sources.
@@ -72,7 +72,7 @@ AVRDUDE_FUSES = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
-OPT = s
+OPT = 2
# Debugging format.
# Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
diff --git a/StripClock.c b/StripClock.c
index be723be..fca7176 100644
--- a/StripClock.c
+++ b/StripClock.c
@@ -192,8 +192,6 @@ ISR(TIMER0_OVF_vect)
}
}
-
-
uint8_t updateStrip(void)
{
uint8_t hour_led = ((dt.hour % 12) * (LEDS/12)) - 1;
diff --git a/ds1307.c b/ds1307.c
index 6f1df2c..0a87efe 100644
--- a/ds1307.c
+++ b/ds1307.c
@@ -65,7 +65,6 @@ uint8_t ds1307_halt(uint8_t halted)
uint8_t ds1307_getDateTime(struct datetime* dt)
{
- unsigned char c;
ds1307_init_read(0x00);
//omit CH bit
dt->second = BCD2DEC(i2c_readAck() & ~(1 << DS1307_BIT_CH));