Sebastien 5 years ago
parent
commit
65dbd203ca
1 changed files with 0 additions and 11 deletions
  1. 0 11
      components/display/core/ifaces/default_if_i2c.c

+ 0 - 11
components/display/core/ifaces/default_if_i2c.c

@@ -15,7 +15,6 @@
 #include "gds_err.h"
 #include "gds_err.h"
 #include "gds_private.h"
 #include "gds_private.h"
 #include "gds_default_if.h"
 #include "gds_default_if.h"
-#include "messaging.h"
 
 
 static int I2CPortNumber;
 static int I2CPortNumber;
 static int I2CWait;
 static int I2CWait;
@@ -90,12 +89,6 @@ bool GDS_I2CAttachDevice( struct GDS_Device* Device, int Width, int Height, int
 static bool I2CDefaultWriteBytes( int Address, bool IsCommand, const uint8_t* Data, size_t DataLength ) {
 static bool I2CDefaultWriteBytes( int Address, bool IsCommand, const uint8_t* Data, size_t DataLength ) {
     i2c_cmd_handle_t* CommandHandle = NULL;
     i2c_cmd_handle_t* CommandHandle = NULL;
     static uint8_t ModeByte = 0;
     static uint8_t ModeByte = 0;
-    static uint32_t failures=0;
-    if(failures > 1000){
-    	ESP_LOGE("I2C_Display","I2C Write failure");
-    	failures = 1;
-    	return false;
-    }
 
 
     NullCheck( Data, return false );
     NullCheck( Data, return false );
 
 
@@ -115,10 +108,6 @@ static bool I2CDefaultWriteBytes( int Address, bool IsCommand, const uint8_t* Da
     return true;
     return true;
 	
 	
 error:
 error:
-
-    if(++failures == 1){
-    	messaging_post_message(MESSAGING_ERROR,MESSAGING_CLASS_SYSTEM, "Display communication failed.");
-    }
 	if (CommandHandle) i2c_cmd_link_delete( CommandHandle );
 	if (CommandHandle) i2c_cmd_link_delete( CommandHandle );
 	return false;
 	return false;
 }
 }