Skip to content

Commit

Permalink
Remove MCU as have reached max possible sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
robthomson committed Dec 18, 2024
1 parent da2630c commit c0a96e1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/main/telemetry/jetiexbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ const exBusSensor_t jetiExSensors[] = {
{"Adj. Function", "", EX_TYPE_22b, DECIMAL_MASK(0)},
{"Adj. Value", "", EX_TYPE_22b, DECIMAL_MASK(0)},
{"ESC. Temp.", "\xB0", EX_TYPE_22b, DECIMAL_MASK(1)},
{"Rotorflight D3", "", EX_TYPE_DES, 0 }, // device descripton
{"MCU. Temp.", "\xB0", EX_TYPE_22b, DECIMAL_MASK(1)},
};

// after every 15 sensors increment the step by 2 (e.g. ...EX_VAL15, EX_VAL16 = 17) to skip the device description
Expand Down Expand Up @@ -192,8 +190,6 @@ enum exSensors_e {
EX_ADJFUNC,
EX_ADJVALUE,
EX_ESCTEMP,
//D3
EX_MCUTEMP = 33,
};

union{
Expand Down Expand Up @@ -309,15 +305,12 @@ void initJetiExBusTelemetry(void)
bitArraySet(&exSensorEnabled, EX_THROTTLE_CONTROL);
bitArraySet(&exSensorEnabled, EX_ADJFUNC);
bitArraySet(&exSensorEnabled, EX_ADJVALUE);


#ifdef USE_ESC_SENSOR_TELEMETRY
bitArraySet(&exSensorEnabled, EX_ESCTEMP);
#endif

#if defined(USE_ADC_INTERNAL)
bitArraySet(&exSensorEnabled, EX_MCUTEMP);
#endif

firstActiveSensor = getNextActiveSensor(0); // find the first active sensor
}

Expand Down Expand Up @@ -507,11 +500,6 @@ int32_t getSensorValue(uint8_t sensor)
break;
#endif

#if defined(USE_ADC_INTERNAL)
case EX_MCUTEMP:
return getCoreTemperatureCelsius();
break;
#endif

default:
return -1;
Expand Down

0 comments on commit c0a96e1

Please sign in to comment.