Class module for NCP5623B I2C LED driver

Dependents:   mDotEVBM2X MTDOT-EVB-LinkCheck-AL MTDOT-EVBDemo-DRH MTDOT_BOX_EVB_Blinky ... more

Revision:
2:9c70b63e3b1e
Parent:
1:f0efe8462d0e
Child:
3:d8a72ac9972b
--- a/NCP5623B.cpp	Tue Oct 27 19:56:56 2015 +0000
+++ b/NCP5623B.cpp	Mon Dec 07 11:28:58 2015 -0600
@@ -48,10 +48,6 @@
     result |= NCP5623B::writeRegister(NCP5623B::PWMLED2, 0x00);
     result |= NCP5623B::writeRegister(NCP5623B::PWMLED3, 0x00);
 
-    if(result != 0) {
-        debug("ILS29011:init failed\n\r");
-    }
-
     return result;
 }
 
@@ -132,13 +128,7 @@
 
     buf[0] = reg | (data & NCP5623B::DATAMASK);
 
-//    __disable_irq();  // // Tickers and other timebase events can jack up the I2C bus for some devices
     result |= _i2c->write(_i2c_addr, buf, 1);
-//    __enable_irq();  // Just need to block during the transaction
-
-    if(result != 0) {
-        debug("NCP5623B:writeRegister failed\n\r");
-    }
 
     return result;
 }