Skip to content

Commit 16d4c61

Browse files
committed
feat(debug): conditionally enable debug button on Nano ESP32
If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met.
1 parent af3a89b commit 16d4c61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: boards.txt

+2
Original file line numberDiff line numberDiff line change
@@ -29910,6 +29910,7 @@ nano_nora.tools.esptool_py.program.pattern_args=--chip {build.mcu} --port "{seri
2991029910
nano_nora.tools.esptool_py.erase.pattern_args=--chip {build.mcu} --port "{serial.port}" --before default_reset --after hard_reset erase_flash
2991129911

2991229912
nano_nora.programmer.default=esptool
29913+
nano_nora.debug.executable=
2991329914

2991429915
nano_nora.menu.PartitionScheme.default=With FAT partition (default)
2991529916
nano_nora.menu.PartitionScheme.spiffs=With SPIFFS partition (advanced)
@@ -29922,6 +29923,7 @@ nano_nora.menu.PinNumbers.byGPIONumber.build.disable_pin_remap=-DBOARD_USES_HW_G
2992229923
nano_nora.menu.USBMode.default=Normal mode (TinyUSB)
2992329924
nano_nora.menu.USBMode.hwcdc=Debug mode (Hardware CDC)
2992429925
nano_nora.menu.USBMode.hwcdc.build.usb_mode=1
29926+
nano_nora.menu.USBMode.hwcdc.debug.executable={build.path}/{build.project_name}.elf
2992529927

2992629928
##############################################################
2992729929

0 commit comments

Comments
 (0)