apps/btask: Fix line feed when there is not advertised data

Note the item "4." doesn't appear at right place:

nsh> bt bnep0 scan start
nsh> bt bnep0 scan stop
nsh> bt bnep0 scan get
Scan result:
 1.     addr:           5a:ae:bd:0b:88:b9 type: 1
        rssi:            -96
        response type:   3
        advertiser data: 1e ff 06 00 01 09 20 02 72 36 18 d5 2c 3f 38 e5
                         fd a5 49 f8 3c e8 a9 f8 15 a8 0e 20 ea 51 02
 2.     addr:           f3:d5:9a:7f:79:54 type: 1
        rssi:            -61
        response type:   0
        advertiser data: 02 01 06 05 03 0a 18 e7 fe 0b ff 34 12 fe e7 f3
                         d5 9a 7f 79 54 05 09 44 4b 30 38
 3.     addr:           f3:d5:9a:7f:79:54 type: 1
        rssi:            -61
        response type:   4
        advertiser data: 4.     addr:           e8:b4:9f:83:66:fd type: 1
        rssi:            -96
        response type:   0
        advertiser data: 02 01 1e 0a ff 75 00 01 00 02 00 01 03 02 03 19
                         c0 00
 5.     addr:           38:6d:34:58:86:6d type: 1
        rssi:            -92
        response type:   3
        advertiser data: 1e ff 06 00 01 09 20 02 e7 45 ff 96 96 eb 1a e8
                         aa 18 cf 37 04 d3 f9 00 28 98 67 97 8a ce 84
nsh>
This commit is contained in:
Alan C. Assis 2021-10-21 14:47:20 -03:00 committed by Xiang Xiao
parent 562239ecb2
commit 1028d5abbe

View File

@ -190,9 +190,9 @@ static void btsak_cmd_scanget(FAR struct btsak_s *btsak, FAR char *cmd,
{
printf(" %02x", rsp->sr_data[j + k]);
}
printf("\n");
}
printf("\n");
}
}