Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Dec 4, 2024
1 parent 60baf50 commit 0fde774
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 56 deletions.
2 changes: 1 addition & 1 deletion radio/src/gui/128x64/radio_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ void menuRadioSetup(event_t event)
#endif

#if defined(TELEMETRY_FRSKY) && defined(GPS)
#if !defined(PCBI6X)
#if defined(RTCLOCK)
case ITEM_SETUP_TIMEZONE:
lcdDrawTextAlignedLeft(y, STR_TIMEZONE);
lcdDrawNumber(RADIO_SETUP_2ND_COLUMN, y, g_eeGeneral.timezone, attr|LEFT);
Expand Down
36 changes: 0 additions & 36 deletions radio/src/myeeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,42 +249,6 @@ enum TelemetrySensorFormula {
TELEM_FORMULA_LAST = TELEM_FORMULA_DIST
};

enum VarioSource {
VARIO_SOURCE_VSPEED,
VARIO_SOURCE_A1,
VARIO_SOURCE_A2,
VARIO_SOURCE_DTE,
VARIO_SOURCE_COUNT,
VARIO_SOURCE_LAST = VARIO_SOURCE_COUNT - 1
};

enum FrskyUsrProtocols {
USR_PROTO_NONE,
USR_PROTO_FRSKY,
USR_PROTO_WS_HOW_HIGH,
USR_PROTO_LAST = USR_PROTO_WS_HOW_HIGH,
};

enum FrskyCurrentSource {
FRSKY_CURRENT_SOURCE_NONE,
FRSKY_CURRENT_SOURCE_A1,
FRSKY_CURRENT_SOURCE_A2,
FRSKY_CURRENT_SOURCE_A3,
FRSKY_CURRENT_SOURCE_A4,
FRSKY_CURRENT_SOURCE_FAS,
FRSKY_CURRENT_SOURCE_LAST = FRSKY_CURRENT_SOURCE_FAS
};

enum FrskyVoltsSource {
FRSKY_VOLTS_SOURCE_A1,
FRSKY_VOLTS_SOURCE_A2,
FRSKY_VOLTS_SOURCE_A3,
FRSKY_VOLTS_SOURCE_A4,
FRSKY_VOLTS_SOURCE_FAS,
FRSKY_VOLTS_SOURCE_CELLS,
FRSKY_VOLTS_SOURCE_LAST = FRSKY_VOLTS_SOURCE_CELLS
};

enum SwashType {
SWASH_TYPE_NONE,
SWASH_TYPE_120,
Expand Down
6 changes: 0 additions & 6 deletions radio/src/telemetry/telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,6 @@ void telemetryInterrupt10ms()

}

#if defined(WS_HOW_HIGH)
if (wshhStreaming > 0) {
wshhStreaming--;
}
#endif

if (telemetryStreaming > 0) {
telemetryStreaming--;
}
Expand Down
6 changes: 1 addition & 5 deletions radio/src/telemetry/telemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,10 @@ struct TelemetryData {
uint16_t xjtVersion;
bool varioHighPrecision;
};
extern uint8_t telemetryProtocol;

extern TelemetryData telemetryData;
extern uint8_t telemetryStreaming; // >0 (true) == data is streaming in. 0 = no data detected for some time

#if defined(WS_HOW_HIGH)
extern uint8_t wshhStreaming;
#endif

enum TelemetryStates {
TELEMETRY_INIT,
TELEMETRY_OK,
Expand Down
8 changes: 0 additions & 8 deletions radio/src/tests/frsky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@ TEST(FrSkySPORT, frskySetCellVoltage)

//display test
lcdClear();

#if !defined(COLORLCD)
g_model.frsky.voltsSource = FRSKY_VOLTS_SOURCE_A1;
#endif
}

TEST(FrSkySPORT, StrangeCellsBug)
Expand Down Expand Up @@ -389,10 +385,6 @@ TEST(FrSkySPORT, frskySetCellVoltageTwoSensors)

//display test
lcdClear();

#if !defined(COLORLCD)
g_model.frsky.voltsSource = FRSKY_VOLTS_SOURCE_A1;
#endif
}

void generateSportFasVoltagePacket(uint8_t * packet, uint32_t voltage)
Expand Down

0 comments on commit 0fde774

Please sign in to comment.