1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Various fixes based on mikeller's comment.

This commit is contained in:
jflyper 2018-08-31 10:54:52 +09:00
parent fc6c24c38e
commit 9ef9f98310
17 changed files with 35 additions and 38 deletions

View file

@ -174,6 +174,8 @@ extern const uint8_t __pg_resetdata_end[];
/**/
#endif
#define PG_ARRAY_ELEMENT_OFFSET(type, index, member) (index * sizeof(type) + offsetof(type, member))
// Emit reset defaults for config.
// Config must be registered with PG_REGISTER_<xxx>_WITH_RESET_TEMPLATE macro
#define PG_RESET_TEMPLATE(_type, _name, ...) \