Software to control a 4-20mA T Click Board over SPI

Revision:
1:92b1c9d2751e
Parent:
0:540e657ddab4
Child:
2:2ff3e18bc668
--- a/CurrentLoop.cpp	Thu Nov 19 12:58:09 2015 +0000
+++ b/CurrentLoop.cpp	Wed Dec 09 07:49:30 2015 +0000
@@ -24,7 +24,7 @@
         dataBin = 2000;
     }
     
-    uint8_t highByte = 0x50 | ((dataBin & 0xFF00) >> 8);
+    uint8_t highByte = 0x50 | ((dataBin & 0x0F00) >> 8);    // Upper 4 bits are for configuration.
     uint8_t lowByte = (dataBin & 0x00FF);
     
     cs_ = 0;