|
@@ -212,7 +212,7 @@ flashrom -p serprog:dev=/dev/$arduino_device:115200 || :
|
|
|
|
|
|
function flashrom_ch341_check_ {
|
|
|
echo -e "\n\e[93mCheck flashrom :\e[0m"
|
|
|
-flashrom -p ch341a_spi || :
|
|
|
+sudo flashrom -p ch341a_spi || :
|
|
|
}
|
|
|
|
|
|
function footer_ {
|
|
@@ -227,6 +227,7 @@ echo -e "flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=2000"
|
|
|
echo -e ""
|
|
|
echo -e "\e[93m\e[21mCh341a: \e[0m"
|
|
|
echo -e "flashrom -p ch341a_spi"
|
|
|
+echo -e "(ch341a need one reboot before use or use sudo)"
|
|
|
echo -e ""
|
|
|
if ! [ -x "$(command -v flashrom)" ]
|
|
|
then
|