1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

Merge pull request #3346 from mikeller/fix_rcsplit_box_id

Removed 'boxId' from 'rcsplitSwitchState_t', cleaned up naming.
This commit is contained in:
Michael Keller 2017-06-25 18:46:25 +12:00 committed by GitHub
commit b77b866c2d
3 changed files with 9 additions and 11 deletions

View file

@ -47,7 +47,7 @@ extern "C" {
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]; // interval [1000;2000]
rcsplit_state_e unitTestRCsplitState()
rcsplitState_e unitTestRCsplitState()
{
return cameraState;
}
@ -55,7 +55,7 @@ extern "C" {
bool unitTestIsSwitchActivited(boxId_e boxId)
{
uint8_t adjustBoxID = boxId - BOXCAMERA1;
rcsplit_switch_state_t switchState = switchStates[adjustBoxID];
rcsplitSwitchState_t switchState = switchStates[adjustBoxID];
return switchState.isActivated;
}
@ -428,4 +428,4 @@ extern "C" {
bool feature(uint32_t) { return false;}
void serialWriteBuf(serialPort_t *instance, const uint8_t *data, int count) { UNUSED(instance); UNUSED(data); UNUSED(count); }
}
}