From 0079ffc404e06c71c60c0f8d8430cebe4fdf8e99 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Mon, 5 Apr 2021 14:57:04 +0100 Subject: [PATCH 1/2] Add a codespell check --- .github/workflows/codespell.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/codespell.yml 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 From 314d65a82e2755c0b9eaaa5d16ee458849f6b4c4 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Mon, 5 Apr 2021 15:07:00 +0100 Subject: [PATCH 2/2] Fix the typos --- src/DMXSerial2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;