Skip to content

Commit

Permalink
Use lastModuleUpdatedTime instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Apr 22, 2023
1 parent 15a18df commit 6314644
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion radio/src/myeeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ enum DisplayTrims

extern RadioData g_eeGeneral;
extern ModelData g_model;
extern bool moduleDirty[];
extern tmr10ms_t lastModuleUpdatedTime[];

PACK(union u_int8int16_t {
struct {
Expand Down
2 changes: 1 addition & 1 deletion radio/src/opentx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

RadioData g_eeGeneral;
ModelData g_model;
bool moduleDirty[MAX_MODULES];
tmr10ms_t lastModuleUpdatedTime[MAX_MODULES];

#if defined(SDCARD)
Clipboard clipboard;
Expand Down
2 changes: 1 addition & 1 deletion radio/src/pulses/afhds3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ void ProtoState::parseData(uint8_t* rxBuffer, uint8_t rxBufferCount)
moduleData->afhds3.telemetry = cfg.v0.IsTwoWay;
moduleData->afhds3.phyMode = cfg.v0.PhyMode;
cfg.BusType.ExternalBusType = cfg.v0.ExternalBusType;
moduleDirty[module_index] = true;
lastModuleUpdatedTime[module_index] = get_tmr10ms();
} break;
case COMMAND::MODULE_VERSION:
std::memcpy((void*) &version, &responseFrame->value, sizeof(version));
Expand Down

0 comments on commit 6314644

Please sign in to comment.