The function signature for lfsr_update()
doesn’t match the required signature for the function pointer for simpleserial_addcmd()
. I’d recommend reading through something like Function Pointer in C - GeeksforGeeks to make sure you understand how function pointers work.