Index: Utilities.c =================================================================== diff -u -r40bef9dbb0e8daf48867d31843058fd88ae09c2d -r8bf3a0f75dde1a5bd8d9228203bd705ea525d5cd --- Utilities.c (.../Utilities.c) (revision 40bef9dbb0e8daf48867d31843058fd88ae09c2d) +++ Utilities.c (.../Utilities.c) (revision 8bf3a0f75dde1a5bd8d9228203bd705ea525d5cd) @@ -643,7 +643,7 @@ // This converts the letters from A to F to 10 to 15. // For instance if the read value is 0x43 ( Hex C ) - 0x37 = 12 (decimal) value = ( value - HEX_LETTER_TO_NUMBER_CONV ); - result = ( result << SHIFT_BITS_BY_4 ) | value; status = TRUE; + result = ( result << SHIFT_BITS_BY_4 ) | value; break; default: @@ -654,7 +654,14 @@ } // Set the processed value to the provided buffer - *convValuePtr = result; + if (TRUE == status) + { + *convValuePtr = result; + } + else + { + *convValuePtr = 0; + } } return status;