From 2eea6db43780fc5b2676ba916d5f995fafeba0bf Mon Sep 17 00:00:00 2001 From: Stephen Olesen Date: Sun, 5 Jul 2015 16:32:55 -0600 Subject: [PATCH] Check for 0x3AC or 0x32C in testConnection(). --- HamShield.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HamShield.cpp b/HamShield.cpp index 9eb2af5..af40976 100644 --- a/HamShield.cpp +++ b/HamShield.cpp @@ -286,8 +286,9 @@ void HamShield::initialize() { */ bool HamShield::testConnection() { I2Cdev::readWord(devAddr, 0x09, radio_i2c_buf); -// 03ac or 032c - return radio_i2c_buf[0] == 0x03AC; // TODO: find a device ID reg I can use + // TODO: find a device ID reg I can use + // 03ac or 032c + return (radio_i2c_buf[0] == 0x03AC || radio_i2c_buf[0] == 0x32C); }