Index: Accel.c =================================================================== diff -u -r2548ee1da65c508852ba445a572bc804f7d5540d -r9d3bfb1c6da333e9e058666efbbcb79cdc1316be --- Accel.c (.../Accel.c) (revision 2548ee1da65c508852ba445a572bc804f7d5540d) +++ Accel.c (.../Accel.c) (revision 9d3bfb1c6da333e9e058666efbbcb79cdc1316be) @@ -499,7 +499,7 @@ SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_EXCESSIVE_TILT, x, y ) #endif } - } + } else if ( ( TRUE == tiltErrorDetected ) && ( ( fabs( x ) > MAX_TILT_ANGLE_TO_CLEAR_ALARM ) || ( fabs( y ) > MAX_TILT_ANGLE_TO_CLEAR_ALARM ) ) ) { #ifdef _DG_ Index: NVDataMgmt.c =================================================================== diff -u -r25eb8368c901c8071ea7a2459e6db3bfafc75e23 -r9d3bfb1c6da333e9e058666efbbcb79cdc1316be --- NVDataMgmt.c (.../NVDataMgmt.c) (revision 25eb8368c901c8071ea7a2459e6db3bfafc75e23) +++ NVDataMgmt.c (.../NVDataMgmt.c) (revision 9d3bfb1c6da333e9e058666efbbcb79cdc1316be) @@ -2506,7 +2506,7 @@ writtenRecordStatus = NVDATAMGMT_RECORD_NOT_CHECKED; // Issue the write command - Fapi_issueProgrammingCommand( (U32*)memoryPtr, structPtr, jobSpecs.maxWriteBufferSize, 0x00, 0, Fapi_DataOnly ); + Fapi_issueProgrammingCommand ( (U32*)memoryPtr, structPtr, jobSpecs.maxWriteBufferSize, 0x00, 0, Fapi_DataOnly ); } } } @@ -3417,7 +3417,7 @@ // Recalculate the CRC with the default values dgServiceGroup.dgServiceRecord.crc = crc16 ( (U08*)&dgServiceGroup.dgServiceRecord, sizeof(DG_SERVICE_RECORD_T) - sizeof(U16) ); -#ifndef DISABLE_SERVICE_RECORD + #ifndef DISABLE_SERVICE_RECORD // Service record failure is also considered as RTC RAM failure activateAlarmNoData( ALARM_ID_DG_INVALID_SERVICE_RECORD_CRC );