This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 447709ada19702571b6bcff6d167e467cfd8464c
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Fri Nov 8 14:06:19 2019 +0100

    hw/scripts: Change tabs to spaces
---
 hw/scripts/jlink.sh | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/hw/scripts/jlink.sh b/hw/scripts/jlink.sh
index b3471dc..569839a 100755
--- a/hw/scripts/jlink.sh
+++ b/hw/scripts/jlink.sh
@@ -48,17 +48,17 @@ jlink_load () {
     jlink_target_cmd
 
     if [ $WINDOWS -eq 1 ]; then
-       JLINK_GDB_SERVER=JLinkGDBServerCL
+        JLINK_GDB_SERVER=JLinkGDBServerCL
     fi
     if [ -z $FILE_NAME ]; then
         echo "Missing filename"
         exit 1
     fi
     if [ ! -f "$FILE_NAME" ]; then
-       # tries stripping current path for readability
+        # tries stripping current path for readability
         FILE=${FILE_NAME##$(pwd)/}
-       echo "Cannot find file" $FILE
-       exit 1
+        echo "Cannot find file" $FILE
+        exit 1
     fi
     if [ -z $FLASH_OFFSET ]; then
         echo "Missing flash offset"
@@ -102,22 +102,22 @@ jlink_load () {
 
     error=`echo $msgs | grep error`
     if [ -n "$error" ]; then
-       exit 1
+        exit 1
     fi
 
     error=`echo $msgs | grep -i failed`
     if [ -n "$error" ]; then
-       exit 1
+        exit 1
     fi
 
     error=`echo $msgs | grep -i "unknown / supported"`
     if [ -n "$error" ]; then
-       exit 1
+        exit 1
     fi
 
     error=`echo $msgs | grep -i "not found"`
     if [ -n "$error" ]; then
-       exit 1
+        exit 1
     fi
 
     return 0
@@ -133,7 +133,7 @@ jlink_load () {
 jlink_debug() {
     windows_detect
     if [ $WINDOWS -eq 1 ]; then
-       JLINK_GDB_SERVER=JLinkGDBServerCL
+        JLINK_GDB_SERVER=JLinkGDBServerCL
     fi
     parse_extra_jtag_cmd $EXTRA_JTAG_CMD
     jlink_target_cmd
@@ -177,13 +177,13 @@ jlink_debug() {
         fi
         echo "$EXTRA_GDB_CMDS" >> $GDB_CMD_FILE
 
-       if [ $WINDOWS -eq 1 ]; then
-           FILE_NAME=`echo $FILE_NAME | sed 's/\//\\\\/g'`
-           $COMSPEC /C "start $COMSPEC /C arm-none-eabi-gdb -x $GDB_CMD_FILE 
$FILE_NAME"
-       else
+        if [ $WINDOWS -eq 1 ]; then
+            FILE_NAME=`echo $FILE_NAME | sed 's/\//\\\\/g'`
+            $COMSPEC /C "start $COMSPEC /C arm-none-eabi-gdb -x $GDB_CMD_FILE 
$FILE_NAME"
+        else
             arm-none-eabi-gdb -x $GDB_CMD_FILE $FILE_NAME
             rm $GDB_CMD_FILE
-       fi
+        fi
     else
         $JLINK_GDB_SERVER -device $JLINK_DEV -speed 4000 -if SWD -port $PORT 
-singlerun $EXTRA_JTAG_CMD
     fi

Reply via email to