Skip to content

Commit 8b915ff

Browse files
committed
fix: typos raised by CodeSpell
Signed-off-by: Frederic Pillon <[email protected]>
1 parent d7d69ab commit 8b915ff

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ motion sensors (humidity, temperature, pressure, accelerometer, gyroscope). The
2323
to SensiBLE and see sensors data. The data are also printed to the serial port.
2424
* Flight1: This application provides an example of usage of a NUCLEO board (it was tested with NUCLEO-F401RE, NUCLEO-L476RG, NUCLEO-L152RE) with
2525
X-NUCLEO-IKS01A2 or X-NUCLEO-IKS01A3, X-NUCLEO-IDB05A1 and X-NUCLEO-53L1A1 Expansion Boards. The application gather data from the sensor mounted and then communicates
26-
them via bluetooth to a suitable Android app (such as ST BLE Sensor). The data gathered include enviromental data (temperature, pression, humidity),
26+
them via bluetooth to a suitable Android app (such as ST BLE Sensor). The data gathered include environmental data (temperature, pression, humidity),
2727
distance, gesture recognition (tap and directional swipe), acceleration (with accelerometer hardware events) and a gyroscope.
2828
* Flight1v2: This application provides an example of usage of a NUCLEO board (it was tested with NUCLEO-F401RE) with
2929
X-NUCLEO-IKS01A3, X-NUCLEO-IDB05A2 and X-NUCLEO-53L1A1 Expansion Boards. The application gathers data from the sensors mounted and then communicates
30-
them via bluetooth to a suitable Android or iOS app (such as ST BLE Sensor). The data gathered include enviromental data (temperature, pression, humidity),
30+
them via bluetooth to a suitable Android or iOS app (such as ST BLE Sensor). The data gathered include environmental data (temperature, pression, humidity),
3131
distance, gesture recognition (tap and directional swipe), acceleration (with accelerometer hardware events), a gyroscope and a magnetometer. In addition, 9x sensor fusion functionality for accurate orientation detection is also available. Note that
3232
unlike the Flight1 application, this one makes use of the STM32duinoBLE API instead of SPBTLE-RF, and does not support X-NUCLEO-IKS01A2 boards. In addition, an up-to-date version of the STM32duinoBLE library is required, as this application uses some of the newest features.
3333
* IKS01A3_S2LP_P2P_Demo: This application provides a simple example of usage of two NUCLEO boards (it was tested with NUCLEO-F401RE and NUCLEO-L053R8)

examples/BleSensors_SensiBLE/BleSensors_SensiBLE.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void Print_Sensors()
209209
SerialPort.print("Temp[C] (HTS221): ");
210210
SerialPort.println(temperature, 2);
211211
// Print LPS25 data
212-
SerialPort.print("Pres[hPa]: ");
212+
SerialPort.print("Press[hPa]: ");
213213
SerialPort.println(pressure, 2);
214214
SerialPort.print("TempP[C] (LPS25): ");
215215
SerialPort.println(temperatureP, 2);

examples/Flight1/Flight1.ino

+13-13
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
volatile int mems_event = 0;
9696

9797
volatile uint8_t AccGyroMag_Enable = 0;
98-
volatile uint8_t Enviroment_Enable = 0;
98+
volatile uint8_t Environment_Enable = 0;
9999
volatile uint8_t Distance_Enable = 0;
100100
volatile uint8_t Gestures_Enable = 0;
101101

@@ -360,7 +360,7 @@ fail:
360360
return 0;
361361
}
362362

363-
/*Update enviromental data (press*/
363+
/*Update environmental data (press*/
364364
tBleStatus Environmental_Update(int32_t Press,uint16_t Hum,int16_t Temp)
365365
{
366366
tBleStatus ret;
@@ -656,12 +656,12 @@ fail:
656656
uint8_t EnvironmentalCharSize=2; /* Size for Environmental BLE characteristic */
657657
uint8_t manuf_data[30] =
658658
{
659-
2 /* lenght*/,0x0A,0x00 /* 0 dBm */, // Trasmission Power
660-
8 /* lenght*/,0x09,NAME_FLIGHT1, // Complete Name
661-
13 /* lenght*/ ,0xFF,0x01,/*SKD version */
659+
2 /* length*/,0x0A,0x00 /* 0 dBm */, // Transmission Power
660+
8 /* length*/,0x09,NAME_FLIGHT1, // Complete Name
661+
13 /* length*/ ,0xFF,0x01,/*SKD version */
662662
0x80, /* NUCLEO-Board */
663663
0x02, /* Prox */
664-
0xE0, /* ACC+Gyro+Mag+Pres+Hum+Temp */
664+
0xE0, /* ACC+Gyro+Mag+Press+Hum+Temp */
665665
0x00, /* SensorFusionShort */
666666
0x00, /* SensorFusionFloat */
667667
0x00, /* BLE MAC start */
@@ -921,13 +921,13 @@ void Attribute_Modified_CB(uint16_t attr_handle, uint8_t * att_data, uint8_t dat
921921
{
922922
if (att_data[0] == 01)
923923
{
924-
Enviroment_Enable = 1;
925-
FLIGHT1_PRINTF("Enviroment enabled\n");
924+
Environment_Enable = 1;
925+
FLIGHT1_PRINTF("Environment enabled\n");
926926
}
927927
else if (att_data[0] == 0)
928928
{
929-
Enviroment_Enable = 0;
930-
FLIGHT1_PRINTF("Enviroment disabled\n");
929+
Environment_Enable = 0;
930+
FLIGHT1_PRINTF("Environment disabled\n");
931931
}
932932
}
933933
else if(attr_handle == GestureDetCharHandle + 2)
@@ -1169,9 +1169,9 @@ void loop()
11691169
BTLE.update();
11701170
if(Flight1.connected)
11711171
{
1172-
//Get enviroment data
1172+
//Get environment data
11731173
float humidity, temperature, pressure;
1174-
if (Enviroment_Enable)
1174+
if (Environment_Enable)
11751175
{
11761176
HumTemp.GetHumidity(&humidity);
11771177
#ifdef USE_IKS01A3
@@ -1452,7 +1452,7 @@ void loop()
14521452
}
14531453

14541454
//Send all mems sensors data
1455-
if (Enviroment_Enable)
1455+
if (Environment_Enable)
14561456
{
14571457
Flight1.Environmental_Update(PressToSend, HumToSend, TempToSend);
14581458
delay(30);

examples/Flight1v2/Flight1v2.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class Flight1Service {
294294
return ret;
295295
}
296296

297-
// Update enviromental data
297+
// Update environmental data
298298
int Environmental_Update(int32_t Press, uint16_t Hum, int16_t Temp)
299299
{
300300
uint8_t pBuff[LEN_PRESS];
@@ -893,7 +893,7 @@ void loop()
893893
}
894894

895895
if (envEnable) {
896-
//Get enviroment data
896+
//Get environment data
897897
float humidity, temperature, pressure;
898898
HumTemp.GetHumidity(&humidity);
899899
Temp.GetTemperature(&temperature);

examples/IKS01A3_S2LP_P2P_Demo/IKS01A3_S2LP_P2P_Demo.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ void recv_data(void)
241241
SerialPort.print(*((float *)(&read_buf[0])), 2);
242242
SerialPort.print(" | Temp[C]: ");
243243
SerialPort.print(*((float *)(&read_buf[sizeof(float)])), 2);
244-
SerialPort.print(" | Pres[hPa]: ");
244+
SerialPort.print(" | Press[hPa]: ");
245245
SerialPort.print(*((float *)(&read_buf[2*sizeof(float)])), 2);
246246
SerialPort.print(" | Temp2[C]: ");
247247
SerialPort.print(*((float *)(&read_buf[3*sizeof(float)])), 2);

examples/X_NUCLEO_IKS02A1_Audio_Button/WaveEncoder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void WaveClass::header_init(uint8_t *pHeader, uint32_t SampleRate, uint32_t Bits
2626

2727
/* Write the file length ---------------------------------------------------
2828
/* The sampling time: this value will be be written back at the end of the
29-
* recording opearation.
29+
* recording operation.
3030
* Example: 44 Bytes = 0x000A17FC, byte[7]=0x00, byte[4]=0xFC
3131
*/
3232
pHeader[4] = 0x2C;
@@ -108,7 +108,7 @@ void WaveClass::header_update(uint8_t *pHeader, uint32_t *byteswritten)
108108
{
109109
/* Write the file length ----------------------------------------------------*/
110110
/* The sampling time: this value will be be written back at the end of the
111-
recording opearation. Example: 661500 Btyes = 0x000A17FC, byte[7]=0x00, byte[4]=0xFC */
111+
recording operation. Example: 661500 Bytes = 0x000A17FC, byte[7]=0x00, byte[4]=0xFC */
112112
pHeader[4] = (uint8_t) * byteswritten; //<-- man mano che scrivo salva qua dentro i byte scritti
113113
pHeader[5] = (uint8_t)(*byteswritten >> 8);
114114
pHeader[6] = (uint8_t)(*byteswritten >> 16);

examples/X_NUCLEO_IKS02A1_Audio_Button/X_NUCLEO_IKS02A1_Audio_Button.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
/* SD Card Initialization */
5353
if (!SD.begin(12000000, 10)) {
54-
Serial.println("Failed to inizialize SD!\n");
54+
Serial.println("Failed to initialize SD!\n");
5555
while(1);
5656
}
5757

@@ -100,7 +100,7 @@ void loop() {
100100
}
101101

102102
if (!(myFile = SD.open(file_name, FILE_WRITE))) {
103-
Serial.println("Failed to Inizialize File\n");
103+
Serial.println("Failed to initialize File\n");
104104
while(1);
105105
}
106106

0 commit comments

Comments
 (0)