static void AddTempCh ( uint8_t Ch ) { /*----------------------------------------------------------------*/ if ( TempParamAsciiValueIndex < TempParamAsciiValueSize ) { TempParamAsciiValue [ TempParamAsciiValueIndex ] = Ch ; TempParamAsciiValueIndex ++ ; TempParamAsciiValue [ TempParamAsciiValueIndex ] = 0 ; } /* if */ ; } /* AddTempCh */ static void DisplayMeasurementData ( void ) { uint8_t Number [ 8 ] ; uint8_t Loop ; /*-------------------------------------------------------------------------*/ TempParamAsciiValueIndex = 0 ; if ( MeasurementTechData & 0x04 ) { AddTempCh ( 0 ) ; TempSensorPresent = false ; LEDOn ( SensorFailLed ) ; } /* if ... */ else { TempSensorPresent = true ; LEDOff ( SensorFailLed ) ; WordToStr ( Number , 5 , ' ' , MeasurementData >> 2 ) ; for ( Loop = 0 ; Loop < 6 ; Loop ++ ) { if ( Number [ Loop ] == ' ' ) continue ; if ( ! Number [ Loop ] ) break ; AddTempCh ( Number [ Loop ] ) ; } /* for */ ; AddTempCh ( ',' ) ; switch ( MeasurementData & 0x03 ) { case 0 : AddTempCh ( '0' ) ; AddTempCh ( '0' ) ; break ; case 1 : AddTempCh ( '2' ) ; AddTempCh ( '5' ) ; break ; case 2 : AddTempCh ( '5' ) ; AddTempCh ( '0' ) ; break ; case 3 : AddTempCh ( '7' ) ; AddTempCh ( '5' ) ; break ; } /* switch */ ; } /* if ... else */ ; } /* DisplayMeasurementData */