Page 2 of 2
Re: Mailbox - How to pass a pointer correct
Posted: Wed Mar 30, 2016 7:16 pm
by flabbergast
There may be a better way of doing this, I would go with
Code: Select all
uint8_t Pool_Buffer[OUTPUT_BUFFER_LEN*sizeof(OutputMessage)];
Re: Mailbox - How to pass a pointer correct
Posted: Wed Mar 30, 2016 7:39 pm
by Methanbombe
FUUUUUUUUUCK
I AM THE BIGGEST POSSIBLE MORON ON THE EARTH :'(
the problem was that I defined the OutputMessage struct below the Pool_Buffer, and gcc didn't know the size of the struct...
Moved it 5 lines up and now it's working :/
Thanks for your help anyways

Methanbombe