add write block w/o length, renaming read_char#222
add write block w/o length, renaming read_char#222DocMoebiuz merged 4 commits intoMobiFlight:mainfrom
Conversation
|
Firmware for this pull request: |
|
Firmware for this pull request: |
|
Firmware for this pull request: |
|
Not sure about the benefit of templating these functions. (BTW, casting to uint8_t* would not work for non-POD objects - which we are not currently using and won't probably be using anytime soon, but still something to be aware of.) |
read_char()is renamed toread_byte()as mainly a byte is required.Within
OnGetInfo()a char is required to send the config via the command messenger, at this pointread_byte()is casted.Additional functions to save/read a complete array or struct. This could be helpfull for future use (e.g. parameters for an analog calibration should be in a struct and this struct should be saved to the EEPROM). These additional functions and the existing functions for reading/saving arrays with fixed lenght are moved to
EEPROM.hin a template.storeName()andrestoreName()are cleaned up slightlyFixes #221