mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 15:55:48 +03:00
Decouple sticks processing code from main mw loops.
Decouple led ring driver from non-driver code.
This commit is contained in:
parent
fd0b7cdf80
commit
18046013a4
16 changed files with 267 additions and 165 deletions
|
@ -26,9 +26,9 @@
|
|||
#include "sensors/battery.h"
|
||||
#include "io/gimbal.h"
|
||||
#include "io/escservo.h"
|
||||
#include "rx/rx.h"
|
||||
#include "io/rc_controls.h"
|
||||
#include "io/rc_curves.h"
|
||||
#include "rx/rx.h"
|
||||
#include "io/gps.h"
|
||||
#include "flight/failsafe.h"
|
||||
|
||||
|
@ -538,6 +538,14 @@ void saveAndReloadCurrentProfileToCurrentProfileSlot(void)
|
|||
readEEPROMAndNotify();
|
||||
}
|
||||
|
||||
void changeProfile(uint8_t profileIndex)
|
||||
{
|
||||
masterConfig.current_profile_index = profileIndex;
|
||||
writeEEPROM();
|
||||
readEEPROM();
|
||||
blinkLedAndSoundBeeper(2, 40, profileIndex);
|
||||
}
|
||||
|
||||
bool feature(uint32_t mask)
|
||||
{
|
||||
return masterConfig.enabledFeatures & mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue