From 918656a37a51385f95e635b5080db19bf27e8279 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi Date: Tue, 5 Nov 2019 10:08:12 +0100 Subject: [PATCH] fix method nomenclature --- src/thyristor.cpp | 24 ++++++++++++------------ src/thyristor.h | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/thyristor.cpp b/src/thyristor.cpp index b7848a1..ae8f1e7 100644 --- a/src/thyristor.cpp +++ b/src/thyristor.cpp @@ -137,11 +137,11 @@ void turn_off_gates_int(){ * Timer routine to turn on one or more thyristors */ #if defined(ARDUINO_ARCH_ESP8266) -void ICACHE_RAM_ATTR activateThyristors(){ +void ICACHE_RAM_ATTR activate_thyristors(){ #elif defined(ARDUINO_ARCH_ESP32) -void IRAM_ATTR activateThyristors(){ +void IRAM_ATTR activate_thyristors(){ #else -void activateThyristors(){ +void activate_thyristors(){ #endif const uint8_t firstToBeUpdated=thyristorManaged; @@ -179,7 +179,7 @@ void activateThyristors(){ startTimerAndTrigger(delay); #elif defined(ARDUINO_ARCH_AVR) if(!timerStartAndTrigger(microsecond2Tick(delay))){ - Serial.println("activateThyristors() error timer"); + Serial.println("activate_thyristors() error timer"); } #elif defined(ARDUINO_ARCH_SAMD) timerStart(microsecond2Tick(delay)); @@ -209,7 +209,7 @@ void activateThyristors(){ #elif defined(ARDUINO_ARCH_AVR) timerSetCallback(turn_off_gates_int); if(!timerStartAndTrigger(microsecond2Tick(delay))){ - Serial.println("activateThyristors() error timer"); + Serial.println("activate_thyristors() error timer"); } #elif defined(ARDUINO_ARCH_SAMD) timerSetCallback(turn_off_gates_int); @@ -335,18 +335,18 @@ void zero_cross_int(){ // NOTE 2: this improvement should be think even for multiple lamp! if(thyristorManaged