From d98eafb11a2a7c7943710d7e8467fcb3ee82740c Mon Sep 17 00:00:00 2001 From: Morgan Redfield Date: Sun, 3 Jul 2016 14:18:02 -0700 Subject: [PATCH] fix devAddr bug --- HamShield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HamShield.cpp b/HamShield.cpp index 543fed9..c51badf 100644 --- a/HamShield.cpp +++ b/HamShield.cpp @@ -137,7 +137,7 @@ HamShield::HamShield() { HamShield::HamShield(uint8_t cs_pin) { devAddr = cs_pin; - pinMode(A1, OUTPUT); + pinMode(devAddr, OUTPUT); digitalWrite(A1, HIGH); pinMode(A4, OUTPUT); pinMode(A5, OUTPUT);