| 1000 | static void (*fNextInterruptFunction)(void) = 0; |
| 1001 | |
| 1002 | void twi_Finish(byte bRetVal) { |
| 1003 | if (ptwv) { |
| 1004 | free(ptwv); |
| 1005 | ptwv = 0; |
| 1006 | } |
| 1007 | twi_Done = 0xFF; |
| 1008 | twi_Return_Value = bRetVal; |
| 1009 | fNextInterruptFunction = 0; |
| 1010 | } |
| 1011 | |
| 1012 | uint8_t twii_WaitForDone(uint16_t timeout) { |
| 1013 | uint32_t endMillis = millis() + timeout; |
no test coverage detected