Skip to content

Commit 03d3494

Browse files
authored
Merge pull request apache#50 from samveen/small_fixes
Strip trailing whitespace from all files
2 parents a22f6e8 + e4065a0 commit 03d3494

File tree

100 files changed

+247
-247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+247
-247
lines changed

nimble/controller/pkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,

nimble/controller/src/ble_ll_scan.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ ble_ll_scan_start(struct ble_ll_scan_sm *scansm, struct ble_ll_sched_item *sch)
963963
*/
964964
assert(!sch || scan_chan < BLE_PHY_ADV_CHAN_START);
965965
assert(sch || scan_chan >= BLE_PHY_ADV_CHAN_START);
966-
966+
967967
/* Set channel */
968968
rc = ble_phy_setchan(scan_chan, BLE_ACCESS_ADDR_ADV, BLE_LL_CRCINIT_ADV);
969969
assert(rc == 0);
@@ -2602,7 +2602,7 @@ ble_ll_scan_set_scan_params(uint8_t *cmd)
26022602
scanp->scan_window = scan_window;
26032603
scanp->scan_filt_policy = filter_policy;
26042604
scanp->own_addr_type = own_addr_type;
2605-
2605+
26062606
#if (BLE_LL_SCAN_PHY_NUMBER == 2)
26072607
g_ble_ll_scan_params[PHY_CODED].configured = 0;
26082608
#endif

nimble/drivers/native/pkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,

nimble/drivers/nrf51/pkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,

nimble/drivers/nrf52/pkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,

nimble/host/include/host/ble_att.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,

nimble/host/include/host/ble_gatt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,
@@ -231,7 +231,7 @@ struct ble_gatt_chr_def {
231231
/** Specifies minimum required key size to access this characteristic. */
232232
uint8_t min_key_size;
233233

234-
/**
234+
/**
235235
* At registration time, this is filled in with the characteristic's value
236236
* attribute handle.
237237
*/

nimble/host/include/host/ble_hs_test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,

nimble/host/include/host/ble_monitor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,

nimble/host/include/host/ble_store.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,
@@ -291,7 +291,7 @@ int ble_store_util_bonded_peers(ble_addr_t *out_peer_id_addrs,
291291
int *out_num_peers,
292292
int max_peers);
293293
int ble_store_util_delete_all(int type, const union ble_store_key *key);
294-
int ble_store_util_delete_peer(const ble_addr_t *peer_id_addr);
294+
int ble_store_util_delete_peer(const ble_addr_t *peer_id_addr);
295295
int ble_store_util_delete_oldest_peer(void);
296296
int ble_store_util_count(int type, int *out_count);
297297
int ble_store_util_status_rr(struct ble_store_status_event *event, void *arg);

nimble/host/include/host/ble_uuid.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,

nimble/host/mesh/pkg.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,
@@ -31,7 +31,7 @@ pkg.deps:
3131
- "@apache-mynewt-core/util/mem"
3232
- "@apache-mynewt-core/crypto/tinycrypt"
3333
- nimble
34-
- nimble/host
34+
- nimble/host
3535

3636
pkg.deps.BLE_MESH_SHELL:
3737
- "@apache-mynewt-core/sys/shell"

nimble/host/mesh/syscfg.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ syscfg.defs:
148148
BLE_MESH_RELAY:
149149
description: >
150150
Support for acting as a Mesh Relay Node.
151-
value: 0
151+
value: 0
152152

153153
BLE_MESH_LOW_POWER:
154154
description: >
@@ -230,19 +230,19 @@ syscfg.defs:
230230
in value for each iteration. The value is in units of 100
231231
milliseconds, so e.g. a value of 300 means 3 seconds.
232232
value: MYNEWT_VAL_BLE_MESH_LPN_POLL_TIMEOUT
233-
233+
234234
BLE_MESH_LPN_SCAN_LATENCY:
235235
description: >
236236
Latency in milliseconds that it takes to enable scanning. This
237237
is in practice how much time in advance before the Receive Window
238238
that scanning is requested to be enabled.
239239
value: 10
240-
240+
241241
BLE_MESH_LPN_GROUPS:
242242
description: >
243243
Maximum number of groups that the LPN can subscribe to.
244244
value: 10
245-
245+
246246
BLE_MESH_FRIEND:
247247
description: >
248248
Enable this option to be able to act as a Friend Node.
@@ -252,19 +252,19 @@ syscfg.defs:
252252
description: >
253253
Receive Window in milliseconds supported by the Friend node.
254254
value: 255
255-
255+
256256
BLE_MESH_FRIEND_QUEUE_SIZE:
257257
description: >
258-
Minimum number of buffers available to be stored for each
258+
Minimum number of buffers available to be stored for each
259259
local Friend Queue.
260260
value: 16
261-
261+
262262
BLE_MESH_FRIEND_SUB_LIST_SIZE:
263263
description: >
264264
Size of the Subscription List that can be supported by a
265265
Friend node for a Low Power node.
266266
value: 3
267-
267+
268268
BLE_MESH_FRIEND_LPN_COUNT:
269269
description: >
270270
Number of Low Power Nodes the Friend can have a Friendship
@@ -317,7 +317,7 @@ syscfg.defs:
317317
description: >
318318
Use this option to enable Beacon-related debug logs for the
319319
Bluetooth Mesh functionality.
320-
value: 0
320+
value: 0
321321

322322
BLE_MESH_DEBUG_CRYPTO:
323323
description: >
@@ -330,7 +330,7 @@ syscfg.defs:
330330
Use this option to enable Provisioning debug logs for the
331331
Bluetooth Mesh functionality.
332332
value: 0
333-
333+
334334
BLE_MESH_DEBUG_ACCESS:
335335
description: >
336336
Use this option to enable Access layer and device composition
@@ -341,7 +341,7 @@ syscfg.defs:
341341
description: >
342342
Use this option to enable debug logs for the Foundation
343343
Models.
344-
value: 0
344+
value: 0
345345

346346
BLE_MESH_DEBUG_ADV:
347347
description: >
@@ -360,7 +360,7 @@ syscfg.defs:
360360
Use this option to enable Friend debug logs for the
361361
Bluetooth Mesh functionality.
362362
value: 0
363-
363+
364364
BLE_MESH_DEBUG_PROXY:
365365
description: >
366366
Use this option to enable Proxy protocol debug logs.

nimble/host/pkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,

nimble/host/pts/pts-gap.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ TC_SEC_AUT_BV_14_C PASS b set sm_data io_capabilities=1
218218
pairing for read
219219
b passkey conn=<handle> action=3 key=123456
220220
Note: enter '123456' passkey in PTS
221-
Note: enter handle for characteristics value which
221+
Note: enter handle for characteristics value which
222222
requires authentication
223223
TC_SEC_AUT_BV_15_C N/A
224224
TC_SEC_AUT_BV_16_C N/A

nimble/host/pts/pts-gatt.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ GATT/CL/GAD/BV-06-C PASS b conn peer_addr=<addr>
5656
<answer YES>
5757
b term conn=<handle>
5858
<repeat>
59-
GATT/CL/GAD/BV-07-C N/A
60-
GATT/CL/GAD/BV-08-C N/A
59+
GATT/CL/GAD/BV-07-C N/A
60+
GATT/CL/GAD/BV-08-C N/A
6161
-------------------------------------------------------------------------------
6262

6363
GATT/CL/GAR/BV-01-C PASS b conn peer_addr=<addr>
@@ -137,7 +137,7 @@ GATT/CL/GAR/BI-16-C PASS b conn peer_addr=<addr>
137137
GATT/CL/GAR/BI-17-C PASS b conn peer_addr=<addr>
138138
b read conn=<handle> long=1 attr=<val_handle>
139139
<answer YES>
140-
b term conn=<handle>
140+
b term conn=<handle>
141141
GATT/CL/GAR/BV-05-C PASS b conn peer_addr=<addr>
142142
b read conn=<handle> attr=<val_handle1> attr=<val_handle2>
143143
b term conn=<handle>
@@ -184,7 +184,7 @@ GATT/CL/GAR/BI-26-C PASS b conn peer_addr=<addr>
184184
GATT/CL/GAR/BI-27-C PASS b conn peer_addr=<addr>
185185
b read conn=<handle> attr=<val_handle>
186186
<answer YES>
187-
b term conn=<handle>
187+
b term conn=<handle>
188188
GATT/CL/GAR/BV-07-C PASS b conn peer_addr=<addr>
189189
b read conn=<handle> long=1 attr=<val_handle>
190190
<answer YES>
@@ -444,8 +444,8 @@ GATT/SR/GAR/BI-35-C N/A
444444
-------------------------------------------------------------------------------
445445

446446
GATT/SR/GAW/BV-01-C PASS b adv
447-
GATT/SR/GAW/BV-02-C N/A
448-
GATT/SR/GAW/BI-01-C N/A
447+
GATT/SR/GAW/BV-02-C N/A
448+
GATT/SR/GAW/BI-01-C N/A
449449
GATT/SR/GAW/BV-03-C PASS b adv
450450
GATT/SR/GAW/BI-02-C PASS b adv
451451
<enter ffff>
@@ -460,7 +460,7 @@ GATT/SR/GAW/BI-08-C PASS b adv
460460
<enter long value handle without WRITE flag>
461461
GATT/SR/GAW/BI-09-C PASS b adv
462462
GATT/SR/GAW/BI-11-C N/A
463-
GATT/SR/GAW/BI-12-C PASS b adv
463+
GATT/SR/GAW/BI-12-C PASS b adv
464464
GATT/SR/GAW/BI-13-C PASS b adv
465465
GATT/SR/GAW/BV-06-C PASS b adv
466466
GATT/SR/GAW/BV-10-C PASS b adv

nimble/host/services/ans/include/services/ans/ble_svc_ans.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct ble_hs_cfg;
3232
#define BLE_SVC_ANS_CHR_UUID16_UNR_ALERT_STAT 0x2a45
3333
#define BLE_SVC_ANS_CHR_UUID16_ALERT_NOT_CTRL_PT 0x2a44
3434

35-
/* Alert Notification Service Category ID Bit Masks
35+
/* Alert Notification Service Category ID Bit Masks
3636
*
3737
* TODO: Add remaining 2 optional categories */
3838
#define BLE_SVC_ANS_CAT_BM_NONE 0x00
@@ -43,7 +43,7 @@ struct ble_hs_cfg;
4343
#define BLE_SVC_ANS_CAT_BM_MISSED_CALL 0x10
4444
#define BLE_SVC_ANS_CAT_BM_SMS 0x20
4545
#define BLE_SVC_ANS_CAT_BM_VOICE_MAIL 0x40
46-
#define BLE_SVC_ANS_CAT_BM_SCHEDULE 0x80
46+
#define BLE_SVC_ANS_CAT_BM_SCHEDULE 0x80
4747

4848
/* Alert Notification Service Category IDs
4949
*
@@ -57,7 +57,7 @@ struct ble_hs_cfg;
5757
#define BLE_SVC_ANS_CAT_ID_VOICE_MAIL 6
5858
#define BLE_SVC_ANS_CAT_ID_SCHEDULE 7
5959

60-
/* Number of valid ANS categories
60+
/* Number of valid ANS categories
6161
*
6262
* TODO: Add remaining 2 optional categories */
6363
#define BLE_SVC_ANS_CAT_NUM 8
@@ -75,7 +75,7 @@ struct ble_hs_cfg;
7575

7676
void ble_svc_ans_on_gap_connect(uint16_t conn_handle);
7777

78-
int ble_svc_ans_new_alert_add(uint8_t cat_id,
78+
int ble_svc_ans_new_alert_add(uint8_t cat_id,
7979
const char * info_str);
8080
int ble_svc_ans_unr_alert_add(uint8_t cat_id);
8181

nimble/host/services/ans/pkg.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing,
@@ -22,10 +22,10 @@ pkg.description: Alert Notification Service Server.
2222
pkg.author: "Apache Mynewt <[email protected]>"
2323
pkg.homepage: "http://mynewt.apache.org/"
2424
pkg.keywords:
25-
- ble
25+
- ble
2626
- bluetooth
27-
- ans
28-
- nimble
27+
- ans
28+
- nimble
2929

3030
pkg.deps:
3131
- nimble/host

0 commit comments

Comments
 (0)