1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 07:15:18 +03:00

Merge pull request #3287 from mikeller/remove_pg_profile_support

Removed support for profile handling in parameter groups.
This commit is contained in:
Michael Keller 2017-06-18 15:52:30 +12:00 committed by GitHub
commit 71958b6732
6 changed files with 35 additions and 169 deletions

View file

@ -2978,11 +2978,7 @@ static void backupConfigs(void)
{
// make copies of configs to do differencing
PG_FOREACH(pg) {
if (pgIsProfile(pg)) {
//memcpy(pg->copy, pg->address, pg->size * MAX_PROFILE_COUNT);
} else {
memcpy(pg->copy, pg->address, pg->size);
}
memcpy(pg->copy, pg->address, pg->size);
}
configIsInCopy = true;
@ -2991,11 +2987,7 @@ static void backupConfigs(void)
static void restoreConfigs(void)
{
PG_FOREACH(pg) {
if (pgIsProfile(pg)) {
//memcpy(pg->address, pg->copy, pg->size * MAX_PROFILE_COUNT);
} else {
memcpy(pg->address, pg->copy, pg->size);
}
memcpy(pg->address, pg->copy, pg->size);
}
configIsInCopy = false;