RP6M32_I2CSlave.c:92: error: void value not ignored as it ought to be
So wie du task_SRF02() definiert hast, hat die Funktion keinen Ausgabewert.