Skip to content

Commit be9850b

Browse files
authored
Merge pull request #14701 from donatieng/utf-8-check
Add Travis test to make sure text files are UTF-8 encoded
2 parents 0711e48 + eac5956 commit be9850b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ matrix:
105105
false;
106106
fi
107107
108+
- <<: *basic-vm
109+
name: "UTF-8 Check"
110+
script:
111+
# Make sure we're not introducing any text which is not UTF-8 encoded
112+
- git diff $TRAVIS_BRANCH...HEAD -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
113+
108114
- <<: *basic-vm
109115
name: "include check"
110116
env: NAME=include_check

connectivity/drivers/ble/FEATURE_BLE/TARGET_STM32WB/STM32Cube_FW/shci.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ extern "C" {
435435
* PrWriteListSize
436436
* NOTE: This parameter is ignored by the CPU2 when the parameter "Options" is set to "LL_only" ( see Options description in that structure )
437437
*
438-
* Maximum number of supported “prepare write request”
438+
* Maximum number of supported “prepare write request”
439439
* - Min value: given by the macro DEFAULT_PREP_WRITE_LIST_SIZE
440440
* - Max value: a value higher than the minimum required can be specified, but it is not recommended
441441
*/
@@ -502,7 +502,7 @@ extern "C" {
502502
* MaxConnEventLength
503503
* This parameter determines the maximum duration of a slave connection event. When this duration is reached the slave closes
504504
* the current connections event (whatever is the CE_length parameter specified by the master in HCI_CREATE_CONNECTION HCI command),
505-
* expressed in units of 625/256 µs (~2.44 µs)
505+
* expressed in units of 625/256 µs (~2.44 µs)
506506
* - Min value: 0 (if 0 is specified, the master and slave perform only a single TX-RX exchange per connection event)
507507
* - Max value: 1638400 (4000 ms). A higher value can be specified (max 0xFFFFFFFF) but results in a maximum connection time
508508
* of 4000 ms as specified. In this case the parameter is not applied, and the predicted CE length calculated on slave is not shortened
@@ -511,7 +511,7 @@ extern "C" {
511511

512512
/**
513513
* HsStartupTime
514-
* Startup time of the high speed (16 or 32 MHz) crystal oscillator in units of 625/256 µs (~2.44 µs).
514+
* Startup time of the high speed (16 or 32 MHz) crystal oscillator in units of 625/256 µs (~2.44 µs).
515515
* - Min value: 0
516516
* - Max value: 820 (~2 ms). A higher value can be specified, but the value that implemented in stack is forced to ~2 ms
517517
*/

0 commit comments

Comments
 (0)