Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling and grammar fixes #491

Merged
merged 1 commit into from
Jul 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ir_Haier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ uint8_t IRHaierAC::getMode() {
return (remote_state[7] & 0b11100000) >> 5;
}

void IRHaierAC::setTemp(const uint8_t celcius ) {
uint8_t temp = celcius;
void IRHaierAC::setTemp(const uint8_t celsius) {
uint8_t temp = celsius;
if (temp < HAIER_AC_MIN_TEMP)
temp = HAIER_AC_MIN_TEMP;
else if (temp > HAIER_AC_MAX_TEMP)
Expand Down
2 changes: 1 addition & 1 deletion src/ir_Mitsubishi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ uint8_t* IRMitsubishiAC::getRaw() {
void IRMitsubishiAC::checksum() {
uint8_t sum = 0;
// Checksum is simple addition of all previous bytes stored
// as a 8 bit value.
// as an 8 bit value.
for (uint8_t i = 0; i < 17; i++)
sum += remote_state[i];
remote_state[17] = sum & 0xFFU;
Expand Down
4 changes: 2 additions & 2 deletions src/ir_NEC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ uint32_t IRsend::encodeNEC(uint16_t address, uint16_t command) {
//
// Notes:
// NEC protocol has three varients/forms.
// Normal: a 8 bit address & a 8 bit command in 32 bit data form.
// Normal: an 8 bit address & an 8 bit command in 32 bit data form.
// i.e. address + inverted(address) + command + inverted(command)
// Extended: a 16 bit address & a 8 bit command in 32 bit data form.
// Extended: a 16 bit address & an 8 bit command in 32 bit data form.
// i.e. address + command + inverted(command)
// Repeat: a 0-bit code. i.e. No data bits. Just the header + footer.
//
Expand Down