LTC2945 ported

Dependencies:   mbed

Revision:
4:d32eaca53504
Parent:
0:6be57f391716
--- a/LTC2945.cpp	Fri Aug 25 14:42:14 2017 +0000
+++ b/LTC2945.cpp	Wed Sep 20 09:03:56 2017 +0000
@@ -95,8 +95,6 @@
   uint8_t LT_byte[4];  //!< 4 bytes (unsigned 8-bit integers) to be converted to a 32-bit signed or unsigned integer
 };
 
-extern "C" {
-
 // Write an 8-bit code to the LTC2945.
 int8_t LTC2945_write(uint8_t i2c_address, uint8_t adc_command, uint8_t code)
 // The function returns the state of the acknowledge bit after the I2C address write. 0=acknowledge, 1=no acknowledge.
@@ -230,5 +228,3 @@
   power = voltage/resistor;                               //! 2) Calculate Power, P = V^2/R
   return(power);
 }
-
-}