I am trying to send data from two slaves to one master.
First, the master initiates the clock, send a synchronization signal to both slaves so they can set the clock.
Then the two slaves send their sensor data (having trouble with sending some, so I send pre-defined data instead but this doesn't matter now), but only one of the slaves sends the actual data.
Please, have a look at this: http://diffchecker.com/00G92F2
It is the difference between the two files.
The left one sends all data correct, while the right one only sends payload correct.
Please, can anyone suggest why? Thank you very much in advance.
There is a lot of code, but this is done for debugging purposes.