From af76d16ee177be77c32ec5573b597b5d49c8cf1a Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 29 Aug 2023 08:42:02 +0200 Subject: [PATCH 1/6] feat(dependabot): group dependency updates --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a0d0f87..590d1ad 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,3 +13,7 @@ updates: time: "05:00" labels: - "github-actions-dependencies" + groups: + github-actions: + patterns: + - "*" From f6bde80f6cb9ea0041a717bb42f72e19554f1159 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Oct 2023 03:02:51 +0000 Subject: [PATCH 2/6] Bump the github-actions group with 1 update Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/autoreview.yml | 2 +- .github/workflows/test.platformio.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autoreview.yml b/.github/workflows/autoreview.yml index 6aa7dd6..ba26d0a 100644 --- a/.github/workflows/autoreview.yml +++ b/.github/workflows/autoreview.yml @@ -5,7 +5,7 @@ jobs: misspellcheck: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run misspell with reviewdog uses: reviewdog/action-misspell@v1 #with: diff --git a/.github/workflows/test.platformio.yml b/.github/workflows/test.platformio.yml index 257a646..b1c7dd4 100644 --- a/.github/workflows/test.platformio.yml +++ b/.github/workflows/test.platformio.yml @@ -31,7 +31,7 @@ jobs: # example: AccessControl steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache pip uses: actions/cache@v3 with: From 3eaa1e32bc514d36f915b879726fa278a88325b3 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sat, 30 Dec 2023 00:51:11 +0100 Subject: [PATCH 3/6] bump version to 1.4.11 --- changes.txt | 5 ++++- library.json | 2 +- library.properties | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changes.txt b/changes.txt index 97e05b9..85946fd 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,9 @@ -- Add changes to unreleased tag until we make a release. -xxxxx , v1.4.11 +xxxxx , v1.4.12 + +30 Dec 2023, v1.4.11 +- fix: documentation 1 Nov 2021 , v1.4.10 - fix: timeout on Non-AVR boards; feat: Use yield() in busy wait loops @greezybacon diff --git a/library.json b/library.json index 7bb6459..9cd0e27 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "MFRC522", - "version": "1.4.10", + "version": "1.4.11", "license": "Unlicense", "keywords": "rfid, spi", "description": "Arduino RFID Library for MFRC522 (SPI). Read/Write a RFID Card or Tag using the ISO/IEC 14443A/MIFARE interface.", diff --git a/library.properties b/library.properties index 92ef73b..b081816 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=MFRC522 -version=1.4.10 +version=1.4.11 author=GithubCommunity maintainer=GithubCommunity sentence=Arduino RFID Library for MFRC522 (SPI) From 13eaed7934dc1c76a6c1ac9fb18bcfc049192c31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 04:04:38 +0000 Subject: [PATCH 4/6] Bump the github-actions group with 1 update Bumps the github-actions group with 1 update: [actions/setup-python](https://github.com/actions/setup-python). Updates `actions/setup-python` from 4 to 5 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/test.platformio.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.platformio.yml b/.github/workflows/test.platformio.yml index b1c7dd4..26e8493 100644 --- a/.github/workflows/test.platformio.yml +++ b/.github/workflows/test.platformio.yml @@ -44,7 +44,7 @@ jobs: path: ~/.platformio key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 - name: Install PlatformIO run: | python -m pip install --upgrade pip From 7bd7a6eb87a3ec03ec7a0ce5c9bd86036ea6103c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 04:16:40 +0000 Subject: [PATCH 5/6] Bump the github-actions group with 1 update Bumps the github-actions group with 1 update: [actions/cache](https://github.com/actions/cache). Updates `actions/cache` from 3 to 4 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/test.platformio.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.platformio.yml b/.github/workflows/test.platformio.yml index 26e8493..488db12 100644 --- a/.github/workflows/test.platformio.yml +++ b/.github/workflows/test.platformio.yml @@ -33,13 +33,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Cache pip - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Cache PlatformIO - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.platformio key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} From 7cd29b7d775cbf527dea3690201e986802eb7f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9opold=20Gravier?= Date: Thu, 15 Feb 2024 19:08:00 +0100 Subject: [PATCH 6/6] Removed unused variable key from examples --- examples/ChangeUID/ChangeUID.ino | 7 ------- examples/FixBrickedUID/FixBrickedUID.ino | 7 ------- examples/MinimalInterrupt/MinimalInterrupt.ino | 2 -- examples/ReadNUID/ReadNUID.ino | 8 -------- 4 files changed, 24 deletions(-) diff --git a/examples/ChangeUID/ChangeUID.ino b/examples/ChangeUID/ChangeUID.ino index eb7b8c8..82c5665 100644 --- a/examples/ChangeUID/ChangeUID.ino +++ b/examples/ChangeUID/ChangeUID.ino @@ -35,19 +35,12 @@ MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance /* Set your new UID here! */ #define NEW_UID {0xDE, 0xAD, 0xBE, 0xEF} -MFRC522::MIFARE_Key key; - void setup() { Serial.begin(9600); // Initialize serial communications with the PC while (!Serial); // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4) SPI.begin(); // Init SPI bus mfrc522.PCD_Init(); // Init MFRC522 card Serial.println(F("Warning: this example overwrites the UID of your UID changeable card, use with care!")); - - // Prepare key - all keys are set to FFFFFFFFFFFFh at chip delivery from the factory. - for (byte i = 0; i < 6; i++) { - key.keyByte[i] = 0xFF; - } } // Setting the UID can be as simple as this: diff --git a/examples/FixBrickedUID/FixBrickedUID.ino b/examples/FixBrickedUID/FixBrickedUID.ino index 8530d41..d1f3654 100644 --- a/examples/FixBrickedUID/FixBrickedUID.ino +++ b/examples/FixBrickedUID/FixBrickedUID.ino @@ -32,19 +32,12 @@ MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance -MFRC522::MIFARE_Key key; - void setup() { Serial.begin(9600); // Initialize serial communications with the PC while (!Serial); // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4) SPI.begin(); // Init SPI bus mfrc522.PCD_Init(); // Init MFRC522 card Serial.println(F("Warning: this example clears your mifare UID, use with care!")); - - // Prepare key - all keys are set to FFFFFFFFFFFFh at chip delivery from the factory. - for (byte i = 0; i < 6; i++) { - key.keyByte[i] = 0xFF; - } } void loop() { diff --git a/examples/MinimalInterrupt/MinimalInterrupt.ino b/examples/MinimalInterrupt/MinimalInterrupt.ino index 37ec436..23273cf 100644 --- a/examples/MinimalInterrupt/MinimalInterrupt.ino +++ b/examples/MinimalInterrupt/MinimalInterrupt.ino @@ -37,8 +37,6 @@ MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance. -MFRC522::MIFARE_Key key; - volatile bool bNewInt = false; byte regVal = 0x7F; void activateRec(MFRC522 mfrc522); diff --git a/examples/ReadNUID/ReadNUID.ino b/examples/ReadNUID/ReadNUID.ino index ffc924e..8e7fd0e 100644 --- a/examples/ReadNUID/ReadNUID.ino +++ b/examples/ReadNUID/ReadNUID.ino @@ -38,8 +38,6 @@ MFRC522 rfid(SS_PIN, RST_PIN); // Instance of the class -MFRC522::MIFARE_Key key; - // Init array that will store new NUID byte nuidPICC[4]; @@ -48,13 +46,7 @@ void setup() { SPI.begin(); // Init SPI bus rfid.PCD_Init(); // Init MFRC522 - for (byte i = 0; i < 6; i++) { - key.keyByte[i] = 0xFF; - } - Serial.println(F("This code scan the MIFARE Classsic NUID.")); - Serial.print(F("Using the following key:")); - printHex(key.keyByte, MFRC522::MF_KEY_SIZE); } void loop() {