Fix
This commit is contained in:
parent
e7f10fa9b9
commit
2287b8e45b
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue