# HG changeset patch # User Ideenmodellierer # Date 1607797137 -3600 # Node ID 011d8f9f5ddbee88987d5b3874802d32db4fbacf # Parent 08af5d707c5ab6dec51221882ff19449498f2815 Added ex Interface measurement restart in case of i2c disturbance: Just to make sure that, in case of a i2c problem, the measurement is restarted. diff -r 08af5d707c5a -r 011d8f9f5ddb Small_CPU/Src/externalInterface.c --- a/Small_CPU/Src/externalInterface.c Sat Dec 12 19:16:37 2020 +0100 +++ b/Small_CPU/Src/externalInterface.c Sat Dec 12 19:18:57 2020 +0100 @@ -111,6 +111,14 @@ } } } + else /* take also i2c bus disturb into account */ + { + if(timeoutCnt++ >= ADC_TIMEOUT) + { + externalInterface_StartConversion(activeChannel); + timeoutCnt = 0; + } + } } return retval; }