#!/bin/bash echo -e "\nErasing flash on $ESPPORT\n" # esptool --port $ESPPORT --baud $ESPBAUD --chip $ESPTARGET erase_flash idf.py erase-flash echo -e "\nAll done :3\n"