File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
obc/app/modules/thermal_mgr Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,19 @@ static obc_error_code_t collectThermalData(void) {
3232
3333 float lm75bdTemp = 0.0f ;
3434 RETURN_IF_ERROR_CODE (readTempLM75BD (LM75BD_OBC_I2C_ADDR , & lm75bdTemp ));
35-
36- // Uncomment this if comms manager task being suspened issue is fixed.
37- // float cc1120Temp = 0.0f;
38- // RETURN_IF_ERROR_CODE(readCC1120Temp(&cc1120Temp));
39-
35+ telemetry_data_t lm75bdTempVal = {.obcTemp = lm75bdTemp , .id = TELEM_OBC_TEMP , .timestamp = getCurrentUnixTime ()};
36+ RETURN_IF_ERROR_CODE (addTelemetryData (& lm75bdTempVal ));
37+
38+ /* Uncomment this if comms manager task being suspened issue is fixed.
39+ float cc1120Temp = 0.0f;
40+ RETURN_IF_ERROR_CODE(readCC1120Temp(&cc1120Temp));
41+ telemetry_data_t cc1120TempVal = {.obcTemp = lm75bdTemp, .id = TELEM_OBC_TEMP, .timestamp = getCurrentUnixTime()};
42+ RETURN_IF_ERROR_CODE(addTelemetryData(&cc1120TempVal));
43+ */
4044 float rtcTemp = 0.0f ;
4145 RETURN_IF_ERROR_CODE (readRTCTemp (& rtcTemp ));
42-
43- telemetry_data_t obcTempVal = {.obcTemp = lm75bdTemp , .id = TELEM_OBC_TEMP , .timestamp = getCurrentUnixTime ()};
44-
45- RETURN_IF_ERROR_CODE (addTelemetryData (& obcTempVal ));
46+ telemetry_data_t rtcTempVal = {.obcTemp = lm75bdTemp , .id = TELEM_OBC_TEMP , .timestamp = getCurrentUnixTime ()};
47+ RETURN_IF_ERROR_CODE (addTelemetryData (& rtcTempVal ));
4648
4749 return OBC_ERR_CODE_SUCCESS ;
4850}
You can’t perform that action at this time.
0 commit comments