Skip to content

Commit

Permalink
Merge pull request miguelbalboa#440 from aosodoev/patch-1
Browse files Browse the repository at this point in the history
Conditional definition of MFRC522_SPICLOCK.
(Make it possible to set SPI clock)
  • Loading branch information
Rotzbua authored Dec 8, 2018
2 parents c5269d6 + ada464c commit 703a5f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MFRC522.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
#include <Arduino.h>
#include <SPI.h>

#ifndef MFRC522_SPICLOCK
#define MFRC522_SPICLOCK SPI_CLOCK_DIV4 // MFRC522 accept upto 10MHz
#endif

// Firmware data for self-test
// Reference values based on firmware version
Expand Down

0 comments on commit 703a5f3

Please sign in to comment.