From 32b799a03cf07de504a77b19432dc523166f472b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 5 Mar 2019 15:42:41 +0100 Subject: counter: rename overflowed to overflow --- include/arch/arduino-nano/driver/counter.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/arch/arduino-nano/driver') diff --git a/include/arch/arduino-nano/driver/counter.h b/include/arch/arduino-nano/driver/counter.h index 43ddd15..5685136 100644 --- a/include/arch/arduino-nano/driver/counter.h +++ b/include/arch/arduino-nano/driver/counter.h @@ -2,7 +2,7 @@ #include typedef counter_value_t uint16_t; -typedef counter_overflowed_t uint8_t; +typedef counter_overflow_t uint8_t; class Counter { private: @@ -10,12 +10,12 @@ class Counter { public: uint16_t value; - volatile uint8_t overflowed; + volatile uint8_t overflow; - Counter() : overflowed(0) {} + Counter() : overflow(0) {} inline void start() { - overflowed = 0; + overflow = 0; TCNT1 = 0; TCCR1A = 0; TCCR1B = _BV(CS10); // no prescaler -- cgit v1.2.3