{#if data.meta.update.ota && !data.meta.target.endsWith("m0")} {@const buttonError = error || (!success && isCorrectDevice === false)}
{#if $serialPort && isCorrectDevice}
Your {$serialPort.company} {$serialPort.device} {$serialPort.chipset} will be updated from {$serialPort.version} to {data.meta.version}
{:else if $serialPort && isCorrectDevice === false}
Your device is incompatible with the selected update.
{:else if success}
Update successful
{:else if error}
{error.message}
{:else if working}
Updating your device...
{:else}
Connect your device to continue
{/if}
{/if}
{#if isCorrectDevice === false}
These files are incompatible with your device
{/if}
  1. your device {#if step >= 1} check_circle {/if}
  2. Make a {#if step >= 2} check_circle {/if}
  3. Reboot to {#if step >= 3} check_circle {/if}
  4. Replace on the new drive {#if step >= 4} check_circle {/if}
{#if data.meta.update.esptool}

Factory Flash (WIP)

If everything else fails, you can go through the same process that is being used in the factory.

This will temporarily brick your device if the process is not done completely or incorrectly.

{terminalOutput}
{/if}