Little happy
Little happy
I want to reuse the code of function addModeChangedCallback, (https://github.com/PTDreamer/heatgun/blob/167bac1dbc2e882feef456b81d40e7900f00f8f1/Src/gun.c#LL124C27-L124C27). However, I find that there is potential problem: ``` void addModeChangedCallback(currentModeChanged callback) { currentModeChangedCallbackStruct_t *s = malloc(sizeof(currentModeChangedCallbackStruct_t)); s->callback = callback;...
The implementation of eeprom_init is unreasonable in https://github.com/deadsy/grbl_stm32f4/blob/a70dfca1467828aa3ed2150312247c298f79b76a/grbl/files/eeprom.c#L21 Here, the purpose of this operation is to set all bit of eeprom_data as 0xff, rather than only **sizeof(EEPROM_LEN)** bytes. A reasonble...