From 80c403aa17ff03afea7cd1a69d41e888291ec052 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 16 Mar 2015 20:56:10 -0700 Subject: [PATCH] switch deviceAddress to the Wire library's preferred data type --- sx1509_library.cpp | 2 +- sx1509_library.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sx1509_library.cpp b/sx1509_library.cpp index 2d7282cc..d5ae8b0a 100644 --- a/sx1509_library.cpp +++ b/sx1509_library.cpp @@ -31,7 +31,7 @@ sx1509Class::sx1509Class(byte address, byte resetPin, byte interruptPin, byte oscillatorPin) { // Store the received parameters into member variables - deviceAddress = address; + deviceAddress = (uint8_t)address; pinInterrupt = interruptPin; pinOscillator = oscillatorPin; pinReset = resetPin; diff --git a/sx1509_library.h b/sx1509_library.h index 3398158f..dac36dd8 100644 --- a/sx1509_library.h +++ b/sx1509_library.h @@ -43,7 +43,7 @@ class sx1509Class private: // These private functions are not available to Arduino sketches. // If you need to read or write directly to registers, consider // putting the writeByte, readByte functions in the public section - byte deviceAddress; // I2C Address of SX1509 + uint8_t deviceAddress; // I2C Address of SX1509 // Pin definitions: byte pinInterrupt; byte pinOscillator;