diff --git a/app/src/components/Flasher.js b/app/src/components/Flasher.js index f23593a4..17ba230c 100644 --- a/app/src/components/Flasher.js +++ b/app/src/components/Flasher.js @@ -667,6 +667,22 @@ export function FlasherPage() { // The nested tab menu isn't inverted automatically; give it the inverted style in dark mode so it matches. const tabMenu = theme === darkTheme ? {inverted: true, attached: true} : {attached: true}; + // A connect failure needs a download-mode reminder shown right where the user acted — both in the Connect + // segment and next to the "Filter files by detecting device" button so it isn't missed off-screen. + const connectErrorMessage = () => (error && bootHint) && + { + setError(''); + setBootHint(false); + }} style={{marginTop: '1em'}}> + Could not connect to the device +

{error}

+

+ Many ESP boards must be put into download mode manually before flashing. Hold the + {' '}BOOT (or IO0) button, briefly press RESET (EN), then release + BOOT and try again. Also check the USB cable is a data cable and no other tab has the port open. +

+
; + // The firmware source is chosen via three tabs (see the ordered array below). const computerPane = { menuItem: 'Add from computer', @@ -712,6 +728,8 @@ export function FlasherPage() { {deviceChip ? 'Detect a different device' : 'Filter files by detecting device'} + {/* Show a connect failure here too, so the user doesn't have to scroll to the Connect segment. */} + {connectErrorMessage()} {deviceChip && {/* Plain (non-inverted) icon: Message backgrounds are light, so a themed white icon @@ -957,19 +975,7 @@ export function FlasherPage() { {/* Rendered outside
so Semantic's ".ui.form .error.message { display:none }" rule doesn't hide it, and here (not at the top) so it is visible right where the user clicked Connect. */} - {error && bootHint && { - setError(''); - setBootHint(false); - }} style={{marginTop: '1em'}}> - Could not connect to the device -

{error}

-

- Many ESP boards must be put into download mode manually before flashing. Hold the - {' '}BOOT (or IO0) button, briefly press RESET (EN), then release - BOOT and try again. Also check the USB cable is a data cable and no other tab has the port - open. -

-
} + {connectErrorMessage()}