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

Removed 'boxId' from 'rcsplitSwitchState_t', cleaned up naming.

This commit is contained in:
mikeller 2017-06-25 16:49:49 +12:00
parent facac4c3e6
commit 7396e2665d
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); }
}
}