File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ jobs:
224
224
if [ -z "${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}}" ]; then
225
225
echo "Error: esptool.flashMode is not set in board definition, using KEEP for all settings."
226
226
fi
227
- BOARD_NAME="${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}"
227
+ BOARD_NAME="${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName || matrix.arduino-platform }}"
228
228
for attempt in 1 2; do
229
229
echo "Attempt $attempt: Fetching tinyuf2 release info for board $BOARD_NAME"
230
230
API_RESPONSE=$(curl --silent --fail https://api.github.com/repos/adafruit/tinyuf2/releases/latest)
@@ -298,7 +298,7 @@ jobs:
298
298
run : |
299
299
echo ${{ steps.get_board_json.outputs.boardJson }}
300
300
echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }}
301
- python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge-bin @new_flash_args
301
+ python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip || fromJson(steps.get_board_json.outputs.boardJson).mcuName }} merge-bin @new_flash_args
302
302
- if : ${{ steps.get_tinyuf2.outcome == 'success' }}
303
303
name : Zip build artifacts
304
304
run : |
You can’t perform that action at this time.
0 commit comments