Compare commits

...

6 Commits

Author SHA1 Message Date
fb-pilot 9a88df341f
Merge cad766d14d into 27d2a0a2d5 2024-04-27 22:38:18 +02:00
Jason2866 27d2a0a2d5
add target reset (#21292) 2024-04-27 21:52:39 +02:00
fb-pilot cad766d14d
Merge branch 'arendst:development' into development 2024-04-27 20:43:34 +02:00
fb-pilot d8c30c9a2a
Update my_user_config.h
Thanks for seeing the typo.
ok ... to have the feature by default was what we (s-hadinger and me) decided in the discussion ( see #21262)
But no problem - so we have it as comment in the my_user_config.h
Waht do you mean with "not implemeted in the driver" ?
2024-04-27 10:12:16 +02:00
fb-pilot f81ef1af18
Update my_user_config.h 2024-04-26 21:10:59 +02:00
fb-pilot 4444589ea4
Update my_user_config.h
modify default of INA3221 driver
2024-04-26 21:05:50 +02:00
2 changed files with 32 additions and 0 deletions

View File

@ -335,6 +335,35 @@ def esp32_use_external_crashreport(*args, **kwargs):
)
print(Fore.YELLOW + output[0]+": \n"+output[1]+" in "+output[2])
def reset_target(*args, **kwargs):
esptoolpy = join(platform.get_package_dir("tool-esptoolpy") or "", "esptool.py")
upload_port = join(env.get("UPLOAD_PORT", "none"))
if "none" in upload_port:
env.AutodetectUploadPort()
upload_port = join(env.get("UPLOAD_PORT", "none"))
esptoolpy_flags = [
"--no-stub",
"--chip", mcu,
"--port", upload_port,
"flash_id"
]
esptoolpy_cmd = [env["PYTHONEXE"], esptoolpy] + esptoolpy_flags
print("Try to reset device")
subprocess.call(esptoolpy_cmd, shell=False)
env.AddCustomTarget(
name="reset_target",
dependencies=None,
actions=[
reset_target
],
title="Reset ESP32 target",
description="This command resets ESP32x target via esptoolpy",
)
env.AddCustomTarget(
name="downloadfs",
dependencies=None,

View File

@ -736,6 +736,9 @@ https://rya.nc/tasmota-fingerprint.html"
// // Both settings together allow to limit searching for INA3221 to only a subset of addresses
// #define INA3221_CALC_CHARGE_AH // calculate charge in Ah
// #define INA3221_CALC_ENERGY_WH // calculate energy in Wh
// #define INA3221_SUPPLY_SIDE 0x7777 // the driver adds the measured Shunt Voltage to the Bus Voltage
// for the cannel with a negativ shunt (shunt <0) thus showing the values of the supply side (IN+)
// additionaly the bits set (bit 0,1,2) enable the scanning of the voltage in the according channel
// #define USE_PMSA003I // [I2cDriver78] Enable PMSA003I Air Quality Sensor (I2C address 0x12) (+1k8 code)
// #define USE_GDK101 // [I2cDriver79] Enable GDK101 sensor (I2C addresses 0x18 - 0x1B) (+1k2 code)
// #define GDK101_SHOW_FW_VERSION