Skip to content
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
15 changes: 15 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# GitHub Action to automate the identification of common misspellings in text files.
# https://github.com/codespell-project/actions-codespell
# https://github.com/codespell-project/codespell
name: codespell
on: [push, pull_request]
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: ./.git
4 changes: 2 additions & 2 deletions src/DMXSerial2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void DMXSerialClass2::init(struct RDMINIT *initData, RDMCallbackFunction func, R
for (unsigned int i = 0; i < sizeof(eeprom); i++)
((byte *)(&eeprom))[i] = EEPROM.read(i);

// check if the EEEPROM values are from the RDM library
// check if the EEPROM values are from the RDM library
if ((eeprom.sig1 == 0x6D) && (eeprom.sig2 == 0x68)) {
_startAddress = eeprom.startAddress;
strcpy (deviceLabel, eeprom.deviceLabel);
Expand Down Expand Up @@ -420,7 +420,7 @@ void DMXSerialClass2::write(int channel, uint8_t value)
if (channel < 1) channel = 1;
if (channel > DMXSERIAL_MAX) channel = DMXSERIAL_MAX;

// The next 2 comparisations have no effect because uint8_t covers exact this range. -> removed
// The next 2 comparisons have no effect because uint8_t covers exact this range. -> removed
// When changing DMXSERIAL_MAX_SLOT_VALUE or _dmxData space allocation, check again.
// if (value < DMXSERIAL_MIN_SLOT_VALUE) value = DMXSERIAL_MIN_SLOT_VALUE;
// if (value > DMXSERIAL_MAX_SLOT_VALUE) value = DMXSERIAL_MAX_SLOT_VALUE;
Expand Down