From 3faa8a200bce2daa3b583214440bb7c7af2c846c Mon Sep 17 00:00:00 2001 From: Petr Ledvina Date: Tue, 31 Mar 2015 12:24:07 +0200 Subject: [PATCH] Answer only on one SmartPort ID Receiver polls all active IDs, then tries one inactive. Answering multiple IDs will starve other devices on bus and it will increase probability of address collision. With 1 active address poll interval is ~24ms --- src/main/telemetry/smartport.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/telemetry/smartport.c b/src/main/telemetry/smartport.c index bf55828fb..0c033446f 100644 --- a/src/main/telemetry/smartport.c +++ b/src/main/telemetry/smartport.c @@ -162,10 +162,7 @@ static void smartPortDataReceive(uint16_t c) if (lastChar == FSSP_START_STOP) { smartPortState = SPSTATE_WORKING; smartPortLastRequestTime = now; - if ((c == FSSP_SENSOR_ID1) || - (c == FSSP_SENSOR_ID2) || - (c == FSSP_SENSOR_ID3) || - (c == FSSP_SENSOR_ID4)) { + if (c == FSSP_SENSOR_ID1) { smartPortHasRequest = 1; // we only responde to these IDs // the X4R-SB does send other IDs, we ignore them, but take note of the time