mirror of https://github.com/arendst/Tasmota.git
Compare commits
6 Commits
ce30865c4a
...
9a88df341f
Author | SHA1 | Date |
---|---|---|
fb-pilot | 9a88df341f | |
Jason2866 | 27d2a0a2d5 | |
fb-pilot | cad766d14d | |
fb-pilot | d8c30c9a2a | |
fb-pilot | f81ef1af18 | |
fb-pilot | 4444589ea4 |
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue