This makes the app busy wait until the telegram is sent. I might be wrong, but I think the collision problem is (or shall) be handled inside the library.
yes, you are right, but:
in the statemachine there is a resend-mechanism, repeat_count flag.
1. when the kollision happens, we must wait a while to resend. If we wait for the same time in different "Controller", the kollision happens always!
2. when the tel_arrived the telegramm-array changed, so we just do the repeat_count++ and repeat the init_tx(), but we do actually send the received telegramms.
so we should do the repeat in main-loop. And main-loop has the low priority so the interrupts just like INT1 or T1 should not wait for the sent.
(maybe we should add the if(tel_arrived) process_tel(); after the while())
all of these are just my analysis， should be verified, but for me the problems seem solved.