Skip to content

Commit

Permalink
Define BUFFER_LENGTH for architectures that do not define it.
Browse files Browse the repository at this point in the history
  • Loading branch information
JChristensen committed Feb 7, 2022
1 parent 15bb4fb commit 8aa9d69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=JC_EEPROM
version=1.0.2
version=1.0.3
author=Jack Christensen <[email protected]>
maintainer=Jack Christensen <[email protected]>
sentence=Arduino library to support external I2C EEPROMs.
Expand Down
6 changes: 6 additions & 0 deletions src/JC_EEPROM.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
#include <Arduino.h>
#include <Wire.h>

// a horrible and limiting kludge for architectures that
// do not define BUFFER_LENGTH
#ifndef BUFFER_LENGTH
#define BUFFER_LENGTH 32
#endif

class JC_EEPROM
{
public:
Expand Down

0 comments on commit 8aa9d69

Please sign in to comment.