i2c timeout change + remove some wifi test code used for led fix - release

This commit is contained in:
Philippe G
2020-09-01 13:40:25 -07:00
parent 9a9a4fef65
commit 94da8ca950
5 changed files with 7 additions and 21 deletions

View File

@@ -35,7 +35,7 @@ static bool I2CDefaultWriteData( struct GDS_Device* Device, const uint8_t* Data,
bool GDS_I2CInit( int PortNumber, int SDA, int SCL, int Speed ) {
I2CPortNumber = PortNumber;
I2CWait = pdMS_TO_TICKS( Speed ? Speed / 4000 : 100 );
I2CWait = pdMS_TO_TICKS( Speed ? (250 * 250000) / Speed : 250 );
if (SDA != -1 && SCL != -1) {
i2c_config_t Config = { 0 };