Skip to content

Commit 8905992

Browse files
committed
code spell checking - part4 (MM specific)
1 parent 9024872 commit 8905992

35 files changed

+86
-86
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@
733733
#### Build 2101040
734734

735735
- Replaced Red & Blue effect with Aurora effect (PR #1589)
736-
- Fixed HTTP changing segments uncommanded (#1618)
736+
- Fixed HTTP changing segments un-commanded (#1618)
737737
- Updated copyright year and contributor page link
738738

739739
#### Build 2012311

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You are all set if you have enabled `Editor: Detect Indentation` in VS Code.
1414

1515
#### Blocks
1616

17-
Whether the opening bracket of e.g. an `if` block is in the same line as the condition or in a separate line is up to your discretion. If there is only one statement, leaving out block braches is acceptable.
17+
Whether the opening bracket of e.g. an `if` block is in the same line as the condition or in a separate line is up to your discretion. If there is only one statement, leaving out block braces is acceptable.
1818

1919
Good:
2020
```cpp

platformio.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ build_flagsV4 = -g
332332
-DCONFIG_LITTLEFS_FOR_IDF_3_2 -DLFS_THREADSAFE
333333
-D CONFIG_ASYNC_TCP_USE_WDT=0
334334
-D CONFIG_ASYNC_TCP_TASK_STACK_SIZE=9472 ;; WLEDMM increase stack by 1.25Kb, as audioreactive needs bigger SETTINGS_STACK_BUF_SIZE
335-
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; mandatory for "classic ESP32" when builing with arduino-esp32 >=2.0.3
335+
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
336336
;;; V4.4.x libraries (without LOROL_LITTLEFS; with newer NeoPixelBus)
337337
lib_depsV4 =
338338
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0 ;; WLEDMM this must be first in the list, otherwise Aircoookie/ESPAsyncWebServer pulls in an older version of AsyncTCP !!
@@ -984,15 +984,15 @@ lib_deps_M =
984984
lib_deps_V4_M =
985985
;https://github.com/blazoncek/OneWire.git ; includes bugfixes for inconsistent readings
986986
paulstoffregen/OneWire@ ^2.3.7 ; used for USERMOD_DALLASTEMPERATURE -> need newer release with bugfixes for -S3; still requires TEMPERATURE_PIN < 46
987-
olikraus/U8g2@ ^2.34.5 ; used for USERMOD_FOUR_LINE_DISPLAY -> need newer version with bugfixes for arduino-esp32 v2.0.4 (Wire inititialization)
987+
olikraus/U8g2@ ^2.34.5 ; used for USERMOD_FOUR_LINE_DISPLAY -> need newer version with bugfixes for arduino-esp32 v2.0.4 (Wire initialization)
988988
${common_mm.animartrix_lib_deps}
989989

990990
build_flags_XL =
991991
-D USERMOD_WEATHER ; WLEDMM usermod
992992
-D USERMOD_MPU6050_IMU ; gyro/accelero for USERMOD_GAMES (ONLY WORKS IF USERMOD_FOUR_LINE_DISPLAY NOT INCLUDED - I2C SHARING BUG)
993993
-D USERMOD_GAMES ; WLEDMM usermod
994994
-D USERMOD_BATTERY ;; enable Battery usermod
995-
-D USERMOD_BATTERY_USE_LIPO ;; use new "decharging curve" for LiPo cells
995+
-D USERMOD_BATTERY_USE_LIPO ;; use new "discharging curve" for LiPo cells
996996
-D USERMOD_BH1750
997997
-D USERMOD_ANIMATED_STAIRCASE
998998
-D USERMOD_RTC ;; experimental
@@ -1124,7 +1124,7 @@ build_flags =
11241124
[Speed_Flags]
11251125
build_flags =
11261126
-O2 ;; optimize for performance instead of size
1127-
;-ffast-math ;; gives a few (2-5) percent sppedup on ESP32-S3, but causes slight slowdown on classic ESP32
1127+
;-ffast-math ;; gives a few (2-5) percent speedup on ESP32-S3, but causes slight slowdown on classic ESP32
11281128
-mtarget-align -free -fipa-pta ;; these are very useful, too
11291129
-fno-jump-tables -fno-tree-switch-conversion ;; needed
11301130
-freorder-blocks -Wwrite-strings -fstrict-volatile-bitfields ;; needed
@@ -1341,7 +1341,7 @@ build_flags = ${common.build_flags_esp8266}
13411341
-D USERMOD_GAMES ; WLEDMM usermod
13421342
; -D USERMOD_ARTIFX ; this is compiling but not working due to low memory on 8266
13431343
-D USERMOD_BATTERY ;; enable Battery usermod
1344-
-D USERMOD_BATTERY_USE_LIPO ;; use new "decharging curve" for LiPo cells
1344+
-D USERMOD_BATTERY_USE_LIPO ;; use new "discharging curve" for LiPo cells
13451345
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
13461346
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
13471347
; -D WLED_DEBUG
@@ -1882,7 +1882,7 @@ build_flags = ${common.build_flags} ${esp32s2.build_flags}
18821882
-D HW_PIN_SCL=35 -D HW_PIN_SDA=33
18831883
-D RLYPIN=9
18841884
;; -D HW_PIN_MOSISPI=11 -D HW_PIN_CLOCKSPI=7 -D HW_PIN_MISOSPI=9 ;; 9 already in use for RELAY, 7 for IR
1885-
-D SR_DMTYPE=1 -D I2S_SDPIN=34 -D I2S_CKPIN=14 -D I2S_WSPIN=17 -D MCLK_PIN=-1 ;; reommended for mini shield
1885+
-D SR_DMTYPE=1 -D I2S_SDPIN=34 -D I2S_CKPIN=14 -D I2S_WSPIN=17 -D MCLK_PIN=-1 ;; recommended for mini shield
18861886
;; -D FFTTASK_PRIORITY=2 ;; useful for testing FFT timing. reduces audio latency, but makes effects slower.
18871887
;; -D STATUSLED=15
18881888
-D WLED_USE_MY_CONFIG

tools/ESP32-Chip_info.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ return F("DOUT");
8282
}
8383

8484

85-
//******** Flash Chip Speed is NOT correctl !!!! *****
85+
//******** Flash Chip Speed is NOT correct !!!! *****
8686
uint32_t my_ESP_getFlashChipSpeed(void)
8787
{
8888
const uint32_t spi_clock = REG_READ(SPI_CLOCK_REG(0));
@@ -413,7 +413,7 @@ void my_print_reset_reason(int reason)
413413
case 11 : Serial.print(" TGWDT_CPU_RESET");break; /**<11, Time Group reset CPU*/
414414
case 12 : Serial.print(" SW_CPU_RESET");break; /**<12, Software reset CPU*/
415415
case 13 : Serial.print(" RTCWDT_CPU_RESET");break; /**<13, RTC Watch dog Reset CPU*/
416-
case 14 : Serial.print(" EXT_CPU_RESET");break; /**<14, for APP CPU, reseted by PRO CPU*/
416+
case 14 : Serial.print(" EXT_CPU_RESET");break; /**<14, for APP CPU, reset by PRO CPU*/
417417
case 15 : Serial.print(" RTCWDT_BROWN_OUT_RESET");break; /**<15, Reset when the vdd voltage is not stable*/
418418
case 16 : Serial.print(" RTCWDT_RTC_RESET");break; /**<16, RTC Watch dog reset digital core and rtc module*/
419419
case 17 : Serial.print(" TG1WDT_CPU_RESET");break; /**<17, Time Group1 reset CPU*/
@@ -452,7 +452,7 @@ void my_verbose_print_reset_reason(int reason)
452452

453453

454454
/*
455-
* parts below were created by softhack007, licended under GPL v3.0
455+
* parts below were created by softhack007, licenced under GPL v3.0
456456
*/
457457

458458
void show_psram_info_part1(void)

usermods/Battery/usermod_v2_Battery.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class UsermodBattery : public Usermod
118118
{
119119
#ifdef ARDUINO_ARCH_ESP32
120120
if ((batteryPin <0) || !pinManager.isPinAnalog(batteryPin)) return(-1.0f); // WLEDMM avoid reading from invalid pin
121-
// use calibrated millivolts analogread on esp32 (150 mV ~ 2450 mV default attentuation) and divide by 1000 to get from milivolts to volts and multiply by voltage multiplier and apply calibration value
121+
// use calibrated millivolts analogread on esp32 (150 mV ~ 2450 mV default attenuation) and divide by 1000 to get from milliVolts to volts and multiply by voltage multiplier and apply calibration value
122122
return (analogReadMilliVolts(batteryPin) / 1000.0f) * voltageMultiplier + calibration;
123123
#else
124124
// use analog read on esp8266 ( 0V ~ 1V no attenuation options) and divide by ADC precision 1023 and multiply by voltage multiplier and apply calibration value
@@ -216,7 +216,7 @@ class UsermodBattery : public Usermod
216216
*/
217217
#ifdef USERMOD_BATTERY_USE_LIPO
218218
batteryLevel = mapf(voltage, minBatteryVoltage, maxBatteryVoltage, 0, 100); // basic mapping
219-
// LiPo batteries have a differnt dischargin curve, see
219+
// LiPo batteries have a different dischargin curve, see
220220
// https://blog.ampow.com/lipo-voltage-chart/
221221
if (batteryLevel < 40.0f)
222222
batteryLevel = mapf(batteryLevel, 0, 40, 0, 12); // last 45% -> drops very quickly
@@ -413,7 +413,7 @@ class UsermodBattery : public Usermod
413413
oappend(SET_F("addInfo('Battery:indicator:threshold', 1, '%');"));
414414
oappend(SET_F("addInfo('Battery:indicator:duration', 1, 's');"));
415415

416-
// cannot quite get this mf to work. its exeeding some buffer limit i think
416+
// cannot quite get this mf to work. its exceeding some buffer limit i think
417417
// what i wanted is a list of all presets to select one from
418418
// oappend(SET_F("bd=addDropdown('Battery:low-power-indicator', 'preset');"));
419419
// the loop generates: oappend(SET_F("addOption(bd, 'preset name', preset id);"));
@@ -612,7 +612,7 @@ class UsermodBattery : public Usermod
612612

613613

614614
/*
615-
* Get the capacity of all cells in parralel sumed up
615+
* Get the capacity of all cells in parallel summed up
616616
* unit: mAh
617617
*/
618618
unsigned int getTotalBatteryCapacity()
@@ -788,7 +788,7 @@ class UsermodBattery : public Usermod
788788

789789

790790
/*
791-
* Get low-power-indicator status when the indication is done thsi returns true
791+
* Get low-power-indicator status when the indication is done this returns true
792792
*/
793793
bool getLowPowerIndicatorDone()
794794
{

usermods/PWM_fan/usermod_PWM_fan.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class PWMFanUsermod : public Usermod {
7575
pinMode(tachoPin, INPUT);
7676
digitalWrite(tachoPin, HIGH);
7777
attachInterrupt(digitalPinToInterrupt(tachoPin), rpm_fan, FALLING);
78-
DEBUG_PRINTLN(F("Tacho sucessfully initialized."));
78+
DEBUG_PRINTLN(F("Tacho successfully initialized."));
7979
}
8080

8181
void deinitTacho(void) {
@@ -118,12 +118,12 @@ class PWMFanUsermod : public Usermod {
118118
if (pwmChannel == 255) { //no more free LEDC channels
119119
deinitPWMfan(); return;
120120
}
121-
// configure LED PWM functionalitites
121+
// configure LED PWM functionalities
122122
ledcSetup(pwmChannel, 25000, 8);
123123
// attach the channel to the GPIO to be controlled
124124
ledcAttachPin(pwmPin, pwmChannel);
125125
#endif
126-
DEBUG_PRINTLN(F("Fan PWM sucessfully initialized."));
126+
DEBUG_PRINTLN(F("Fan PWM successfully initialized."));
127127
}
128128

129129
void deinitPWMfan(void) {

usermods/artifx/arti.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- #define ARDUINOJSON_DEFAULT_NESTING_LIMIT 100 //set this in ArduinoJson!!!, currently not necessary...
1010
- IF UPDATING THIS FILE IN THE WLED REPO, SEND A PULL REQUEST TO https://github.com/ewoudwijma/ARTI AS WELL!!!
1111
@later
12-
- Code improvememt
12+
- Code improvement
1313
- See 'for some weird reason this causes a crash on esp32'
1414
- check why column/lineno not correct
1515
- Definition improvements
@@ -2181,7 +2181,7 @@ class ARTI {
21812181
ERROR_ARTI("%s %s %s unknown\n", spaces+50-depth, key, variable_name);
21822182
valueStack->push(floatNull);
21832183
}
2184-
} // ! founnd
2184+
} // ! fouund
21852185
visitedAlready = true;
21862186
break;
21872187
}

usermods/artifx/arti_wled.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#pragma once
1111

12-
// For testing porposes, definitions should not only run on Arduino but also on Windows etc.
12+
// For testing purposes, definitions should not only run on Arduino but also on Windows etc.
1313
// Because compiling on arduino takes seriously more time than on Windows.
1414
// The plugin.h files replace native arduino calls by windows simulated calls (e.g. setPixelColor will become printf)
1515

@@ -185,7 +185,7 @@ float ARTI::arti_external_function(uint8_t function, float par1, float par2, flo
185185

186186
float halfLength = (circleLength-1)/2.0;
187187

188-
//calculate circle positions, round to 5 digits and then round again to cater for radians inprecision (e.g. 3.49->3.5->4)
188+
//calculate circle positions, round to 5 digits and then round again to cater for radians imprecision (e.g. 3.49->3.5->4)
189189
int x = round(round((sin(radians(par1)) * halfLength + halfLength) * 10)/10) + deltaWidth;
190190
int y = round(round((halfLength - cos(radians(par1)) * halfLength) * 10)/10) + deltaHeight;
191191
return SEGMENT.XY(x,y);

usermods/artifx/artifx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function populateCEEditor(name, segID)
8282
<button class="btn infobtn btn-xs" onclick="location.href='https://mm.kno.wled.ge/moonmodules/arti-fx'" type="button">?</button><br>
8383
<br><i>Compile and Run Log</i><br>
8484
<textarea class="ceTextarea" id="ceLogArea"></textarea><br>
85-
<i>Run log > 3 seconds is send to Serial Ouput.</i><br>
85+
<i>Run log > 3 seconds is send to Serial Output.</i><br>
8686
<a href="#" onclick="downloadGHFile('HBB','presets.json',true,true);return false;" title="Download HBaas Base presets">🥚</a>
8787
<a href="#" onclick="downloadGHFile('HBE','presets.json',true,true);return false;" title="Download HBaas Effects presets">🥚</a>
8888
<a href="#" onclick="downloadGHFile('LM','presets.json',true,true);return false;" title="Download Ledmap presets">🥚</a>`;

usermods/artifx/usermod_v2_artifx.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ARTI * arti;
1919
//effect function
2020
uint16_t mode_ARTIFX(void) {
2121
//tbd: move statics to SEGMENT.data
22-
static bool succesful;
22+
static bool successful;
2323
static bool notEnoughHeap;
2424

2525
static char previousEffect[charLength];
@@ -46,20 +46,20 @@ uint16_t mode_ARTIFX(void) {
4646
// artiWrapper = reinterpret_cast<ArtiWrapper*>(SEGENV.data);
4747
arti = new ARTI();
4848

49-
succesful = arti->setup("/wledv033.json", currentEffect);
49+
successful = arti->setup("/wledv033.json", currentEffect);
5050

51-
if (!succesful)
52-
ERROR_ARTI("Setup not succesful\n");
51+
if (!successful)
52+
ERROR_ARTI("Setup not successful\n");
5353
}
5454
else
5555
{
56-
if (succesful) // && SEGENV.call < 250 for each frame
56+
if (successful) // && SEGENV.call < 250 for each frame
5757
{
5858
if (FREE_SIZE <= 20000)
5959
{
6060
ERROR_ARTI("Not enough free heap (%u <= 30000)\n", FREE_SIZE);
6161
notEnoughHeap = true;
62-
succesful = false;
62+
successful = false;
6363
}
6464
else
6565
{
@@ -71,15 +71,15 @@ uint16_t mode_ARTIFX(void) {
7171
// previousCall = SEGENV.call;
7272
// }
7373

74-
succesful = arti->loop();
74+
successful = arti->loop();
7575
}
7676
}
7777
else
7878
{
7979
arti->closeLog();
8080
if (notEnoughHeap && FREE_SIZE > 20000) {
8181
ERROR_ARTI("Again enough free heap, restart effect (%u > 30000)\n", FREE_SIZE);
82-
succesful = true;
82+
successful = true;
8383
notEnoughHeap = false;
8484
strcpy(previousEffect, ""); // force new create
8585
}

0 commit comments

Comments
 (0)