Skip to content
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion webapp/src/dialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,15 @@ export function promptTranslateBlock(blockid: string, blockTranslationIds: strin
export function renderBrowserDownloadInstructions(saveonly?: boolean, redeploy?: () => Promise<void>) {
const boardName = pxt.appTarget.appTheme.boardName || lf("device");
const boardDriveName = pxt.appTarget.appTheme.driveDisplayName || pxt.appTarget.compile.driveName || "???";
const fileExtension = pxt.appTarget.compile?.useUF2 ? ".uf2" : ".hex";
let fileExtension = ".hex";
const webUSBSupported = pxt.usb.isEnabled && pxt.appTarget?.compile?.webUSB;

if (pxt.appTarget.compile?.switches?.rawELF) {
fileExtension = ".elf";
} else if (pxt.appTarget.compile?.useUF2) {
fileExtension = ".uf2";
}

const onPairClicked = async () => {
core.hideDialog();
const successfulPairing = await pairAsync(true);
Expand Down