Library for interfacing with the MAX4822 relay driver.

Dependents:   MAXREFDES130_131_Demo MAXREFDES130_Demo

Revision:
2:7b30a3361e40
Parent:
1:0263f798de82
Child:
3:90f7cd976f18
diff -r 0263f798de82 -r 7b30a3361e40 MAX4822.cpp
--- a/MAX4822.cpp	Thu Jul 28 21:41:40 2016 +0000
+++ b/MAX4822.cpp	Tue Aug 02 19:23:49 2016 +0000
@@ -145,7 +145,7 @@
             while(num_writes--)
             {
                 m_spi.write(MAX4822::POWER_SAVE_REG);
-                m_spi.write(m_relay_data[num_writes]);
+                m_spi.write(m_pwr_save_data[num_writes]);
             }
             m_cs = 1;
         }