Fixed issue causing wrong time to be sat

also collaped two macros into one function. As a hack on the i have
inserted a fixed delay after each twi stop condition wich is needed to
make the rtc behave