Skip to content

Commit

Permalink
code spell checking - part2 (dependencies)
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed Dec 14, 2023
1 parent f513cae commit 9f79e64
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wled00/src/dependencies/dmx/ESPDMX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define BREAKFORMAT SERIAL_8N1

bool dmxStarted = false;
int sendPin = 2; //dafault on ESP8266
int sendPin = 2; //default on ESP8266

//DMX value array and size. Entry 0 will hold startbyte
uint8_t dmxDataStore[dmxMaxChannel] = {};
Expand Down
4 changes: 2 additions & 2 deletions wled00/src/dependencies/time/DS1307RTC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define DS1307_CTRL_ID 0x68

// PUBLIC FUNCTIONS
time_t DS1307RTC::get() // Aquire data from buffer and convert to time_t
time_t DS1307RTC::get() // Acquire data from buffer and convert to time_t
{
tmElements_t tm;
if (read(tm) == false) return 0;
Expand All @@ -48,7 +48,7 @@ bool DS1307RTC::set(time_t t)
return write(tm);
}

// Aquire data from the RTC chip in BCD format
// Acquire data from the RTC chip in BCD format
bool DS1307RTC::read(tmElements_t &tm)
{
uint8_t sec;
Expand Down
6 changes: 3 additions & 3 deletions wled00/src/dependencies/time/Time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ int year(time_t t) { // the year for the given time

/*============================================================================*/
/* functions to convert to and from system time */
/* These are for interfacing with time serivces and are not normally needed in a sketch */
/* These are for interfacing with time services and are not normally needed in a sketch */

// leap year calulator expects year argument as years offset from 1970
// leap year calculator expects year argument as years offset from 1970
#define LEAP_YEAR(Y) ( ((1970+Y)>0) && !((1970+Y)%4) && ( ((1970+Y)%100) || !((1970+Y)%400) ) )

static const uint8_t monthDays[]={31,28,31,30,31,30,31,31,30,31,30,31}; // API starts months from 1, this array starts from 0
Expand Down Expand Up @@ -193,7 +193,7 @@ time_t makeTime(tmElements_t &tm){
}

time_t getUnixTime(int hr,int min,int sec,int dy, int mnth, int yr){
// year can be given as full four digit year or two digts (2010 or 10 for 2010);
// year can be given as full four digit year or two digits (2010 or 10 for 2010);
//it is converted to years since 1970
if( yr > 99)
yr = yr - 1970;
Expand Down
2 changes: 1 addition & 1 deletion wled00/src/dependencies/timezone/Timezone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "Timezone.h"

//THIS LINE WAS ADDED FOR COMPATIBILY WITH THE WLED DEPENDENCY STRUCTURE. REMOVE IF YOU USE IT OUTSIDE OF WLED!
//THIS LINE WAS ADDED FOR COMPATIBILITY WITH THE WLED DEPENDENCY STRUCTURE. REMOVE IF YOU USE IT OUTSIDE OF WLED!
#include "../time/TimeLib.h"

#ifdef __AVR__
Expand Down

0 comments on commit 9f79e64

Please sign in to comment.