[Taranis] 6pos multiswitch fix

This commit is contained in:
Bertrand Songis
2014-02-02 22:50:36 +01:00
parent 64a8349120
commit 413c146fe0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1284,7 +1284,7 @@ void menuGeneralHardware(uint8_t event)
}
#endif
#define XPOT_DELTA 7
#define XPOT_DELTA 5
void menuCommonCalib(uint8_t event)
{
@@ -1305,7 +1305,7 @@ void menuCommonCalib(uint8_t event)
else {
if (reusableBuffer.calib.xpotsCalib[idx].lastCount < 255) reusableBuffer.calib.xpotsCalib[idx].lastCount++;
}
if (reusableBuffer.calib.xpotsCalib[idx].lastCount == 20/*200ms*/) {
if (reusableBuffer.calib.xpotsCalib[idx].lastCount == 10/*100ms*/) {
int16_t position = reusableBuffer.calib.xpotsCalib[idx].lastPosition;
bool found = false;
for (int j=0; j<count; j++) {