From cae46e0d015ab6b91a422170204290d87cde0c8f Mon Sep 17 00:00:00 2001 From: oogm Date: Sun, 29 May 2022 17:41:39 +0200 Subject: [PATCH] Remove logs and add references --- tasmota/xlgt_08_bp5758d.ino | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/tasmota/xlgt_08_bp5758d.ino b/tasmota/xlgt_08_bp5758d.ino index 23379875d..e2104ddf2 100644 --- a/tasmota/xlgt_08_bp5758d.ino +++ b/tasmota/xlgt_08_bp5758d.ino @@ -59,25 +59,10 @@ struct BP5758D { } Bp5758d; /*********************************************************************************************\ - * Bp5758d code + * Bp5758d code - inspired by SM2135 and github.com/dbuezas/esphome-bp5758 \*********************************************************************************************/ const uint8_t BP5758D_DELAY = 2; -/* -void Bp5758dSetLow(uint8_t pin) { - noInterrupts(); - digitalWrite(pin, LOW); - pinMode(pin, OUTPUT); - interrupts(); -} - -void Bp5758dSetHigh(uint8_t pin) { - noInterrupts(); - pinMode(pin, INPUT_PULLUP); - interrupts(); -} -*/ - void Bp5758dInit(void) { pinMode(Bp5758d.data, OUTPUT); pinMode(Bp5758d.clk, OUTPUT); @@ -85,7 +70,6 @@ void Bp5758dInit(void) { } void Bp5758dWrite(uint8_t value) { - AddLog(LOG_LEVEL_DEBUG, PSTR("LGT: Bp5758dWrite %2x"), value); for (int bit_idx = 7; bit_idx >= 0; bit_idx--) { bool bit = bitRead(value, bit_idx); digitalWrite(Bp5758d.data, bit); @@ -105,7 +89,6 @@ void Bp5758dWrite(uint8_t value) { } void Bp5758dStart(uint8_t addr) { - AddLog(LOG_LEVEL_DEBUG, PSTR("LGT: Bp5758dStart")); digitalWrite(Bp5758d.data, LOW); delayMicroseconds(BP5758D_DELAY); digitalWrite(Bp5758d.clk, LOW); @@ -114,7 +97,6 @@ void Bp5758dStart(uint8_t addr) { } void Bp5758dStop(void) { - AddLog(LOG_LEVEL_DEBUG, PSTR("LGT: Bp5758dStop")); digitalWrite(Bp5758d.clk, HIGH); delayMicroseconds(BP5758D_DELAY); digitalWrite(Bp5758d.data, HIGH);