From f3cc8997b0f4dacbfba511c04aeb3da995be7274 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 19 May 2023 17:14:29 +0200 Subject: [PATCH] Fix Berry solidify of berry_tasmota on Windows --- lib/libesp32/berry_tasmota/src/embedded/i2c_axp192.be | 7 ++++--- lib/libesp32/berry_tasmota/src/embedded/i2c_axp202.be | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/libesp32/berry_tasmota/src/embedded/i2c_axp192.be b/lib/libesp32/berry_tasmota/src/embedded/i2c_axp192.be index ccf0ea770..82550b46d 100644 --- a/lib/libesp32/berry_tasmota/src/embedded/i2c_axp192.be +++ b/lib/libesp32/berry_tasmota/src/embedded/i2c_axp192.be @@ -1,8 +1,9 @@ #------------------------------------------------------------- - Generic driver for AXP192 - solidified -------------------------------------------------------------# - - #@ solidify:AXP192 +class I2C_Driver end # for solidification + +#@ solidify:AXP192 class AXP192 : I2C_Driver def init() super(self, I2C_Driver).init("AXP192", 0x34) @@ -103,7 +104,7 @@ class AXP192 : I2C_Driver # Set voltage on DC-DC1/2/3 # dcdc: 1/2/3 (warning some C libs start at 0) - # voltage: + # voltage: def set_dc_voltage(dcdc, voltage) if dcdc < 1 || dcdc > 3 return end var v diff --git a/lib/libesp32/berry_tasmota/src/embedded/i2c_axp202.be b/lib/libesp32/berry_tasmota/src/embedded/i2c_axp202.be index f2176dfd3..eee7f2bac 100644 --- a/lib/libesp32/berry_tasmota/src/embedded/i2c_axp202.be +++ b/lib/libesp32/berry_tasmota/src/embedded/i2c_axp202.be @@ -1,8 +1,10 @@ #------------------------------------------------------------- - Generic driver for AXP202 - solidified -------------------------------------------------------------# +class I2C_Driver end # for solidification + #@ solidify:AXP202 - class AXP202 : I2C_Driver +class AXP202 : I2C_Driver def init() super(self, I2C_Driver).init("AXP202", 0x35) end @@ -107,7 +109,7 @@ # Set voltage on DC-DC 2/3 # dcdc: 2/3 (warning some C libs start at 0) - # voltage: + # voltage: def set_dc_voltage(dcdc, voltage) if dcdc < 2 || dcdc > 3 return end var v