From a2c19e5a54ac410b588dd4fc0445071475d56ef9 Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Mon, 10 Oct 2011 17:41:50 -0700
Subject: usrp: added product and revision fields to eeprom

---
 host/lib/usrp/usrp2/usrp2_iface.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'host/lib/usrp/usrp2/usrp2_iface.cpp')

diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp
index 5e9759ba5..3c9e0ae0c 100644
--- a/host/lib/usrp/usrp2/usrp2_iface.cpp
+++ b/host/lib/usrp/usrp2/usrp2_iface.cpp
@@ -291,7 +291,7 @@ public:
     }
 
     rev_type get_rev(void){
-        switch (boost::lexical_cast<boost::uint16_t>(mb_eeprom["rev"])){
+        switch (boost::lexical_cast<boost::uint16_t>(mb_eeprom["hardware"])){
         case 0x0300:
         case 0x0301: return USRP2_REV3;
         case 0x0400: return USRP2_REV4;
-- 
cgit v1.2.3