Open ghost opened 1 year ago
You are assembling your data structure in a very brittle way. The very least create a packed struct and avoid floating-point numbers. Especially if the two are both not the same architecture. After serialisation and deserialisation is done in a proper manner, eliminating those bugs, you can debug further.
my way(serialisation and deserialisation) did very well with simple SPI communication test. but I will consider using packed struct as you said.
and I want to debug float number by TVOut because my serial port is already using.
Hello.
I have two arduino nano.
one is master, and one is slave.
master sends 2 int16_t variables and 1 double variable.
slave receives it successfully unless there are TVOut code.
if I add TVOut, the result data corrupted. (expected result : 1111,2222,3333.3, actual result : -18703, -0.00 like this)
is TVOut interfering the data?
Master Code :
Slave code :