This commit is contained in:
cfif 2024-12-12 17:58:12 +03:00
parent e7f10fa9b9
commit 2287b8e45b
3 changed files with 10 additions and 6 deletions

View File

@ -128,11 +128,10 @@ void GsmWithGnssInit(
ControllableSwitch_Init(&env->useInternalAntennaSwitch, env, GsmWithGnss_InvalidateGnssUserExternalAntenna);
ControllableSwitch_Init(&env->enableNetworkSwitch, env, GsmWithGnss_InvalidateNetworkEnable);
#ifdef UVEOS_ADD_TELEMATICA
env->gnssRmcGga.rmcAccess = osMutexNew(NULL);
env->isRtcACP = false;
#endif
}

View File

@ -67,6 +67,8 @@ typedef struct {
bool isNav;
#ifdef UVEOS_ADD_TELEMATICA
tLoggerToSerialPort *slog;
struct {
@ -75,15 +77,14 @@ typedef struct {
tNmeaRmc currentRmc;
} gnssRmcGga;
#ifdef UVEOS_ADD_TELEMATICA
bool isDisconnect;
uint8_t codeResultOpen;
tSocketGsm socketGsm;
#endif
bool isRtcACP;
#endif
} tGsmWithGnss;
//Common

View File

@ -68,6 +68,7 @@ void AtGsm_Gsnss_NavData_Processing(tGsmWithGnss *env) {
}
#ifdef UVEOS_ADD_TELEMATICA
void Gnss_GetFullNavData(tGsmWithGnss *env, tNmeaRmc *nmeaRmc) {
if (osMutexAcquire(env->gnssRmcGga.rmcAccess, 2000) == osOK) {
@ -80,6 +81,9 @@ void Gnss_GetFullNavData(tGsmWithGnss *env, tNmeaRmc *nmeaRmc) {
}
}
#endif
void GsmWithGnss_GetNevData(tGsmWithGnss *env, uint32_t timeout) {