Skip to content

Commit bb6a9bd

Browse files
committed
fix missing space in if expression. add more diagnostic messages
1 parent b793c9c commit bb6a9bd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build_esp8266.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fi
230230
#*******************************************************************************************************
231231
# use esptool.py to check connected device
232232
#*******************************************************************************************************
233-
if [ "$DEVICEFOUND" == "1"]; then
233+
if [ "$DEVICEFOUND" == "1" ]; then
234234
echo ""
235235
echo "Checking connected device at $MYDEVICE at $MYBAUD baud with esptool..."
236236

@@ -639,11 +639,17 @@ cd ~/workspace
639639
echo "If the firmware uploaded correctly, now would be a good time to press reset on your ESP8266."
640640
echo "If hello world prints, then MicroPython is probably working!"
641641
read -n 1 -p "Press a key to continue..."
642-
echo ""
642+
echo "Attempting initial pyboard.py command...."
643+
643644
python ~/workspace/micropython/tools/pyboard.py --device "$MYDEVICE" -c 'print("hello world")'
644645
echo ""
645-
646+
echo "Hello World test complete!"
647+
echo
648+
echo "For reference, here is some local python info:"
646649
apt-cache policy python3 python
650+
651+
echo ""
652+
echo "Here is the xtensa version info:"
647653
~/workspace/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-cc --version
648654

649655
# uncomment if you don't want to use minicom but need to open a terminal session to ESP8266

0 commit comments

Comments
 (0)