mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Check that pins needed by Wire are defined at compile-time (#4261)
This commit is contained in:
parent
4bafbe5514
commit
9ba8f77678
@ -30,6 +30,13 @@ extern "C" {
|
||||
#include "twi.h"
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
//Some boards don't have these pins available, and hence don't support Wire.
|
||||
//Check here for compile-time error.
|
||||
#if !defined(PIN_WIRE_SDA) || !defined(PIN_WIRE_SCL)
|
||||
#error Wire library is not supported on this board
|
||||
#endif
|
||||
|
||||
// Initialize Class Variables //////////////////////////////////////////////////
|
||||
|
||||
uint8_t TwoWire::rxBuffer[BUFFER_LENGTH];
|
||||
|
Loading…
x
Reference in New Issue
Block a user