diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..f39b305 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -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 diff --git a/src/DMXSerial2.cpp b/src/DMXSerial2.cpp index 54934ff..176fab7 100644 --- a/src/DMXSerial2.cpp +++ b/src/DMXSerial2.cpp @@ -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); @@ -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;