Skip to content

Commit

Permalink
Wire: Increase buffer size to 64 bytes
Browse files Browse the repository at this point in the history
The old value of 32 bytes is too small to use the Sensirion SPS030
sensor with the current version of the library for that. See:
Sensirion/arduino-sps#24
  • Loading branch information
matthijskooijman committed Nov 2, 2020
1 parent 8ef30a3 commit d5ce3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Wire/src/Wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "variant.h"
#include "stm32l0_i2c.h"

#define BUFFER_LENGTH 32
#define BUFFER_LENGTH 64

// WIRE_HAS_END means Wire has end()
#define WIRE_HAS_END 1
Expand Down

0 comments on commit d5ce3b1

Please sign in to comment.