Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Convert_Hex_To_Ascii_Measures(uint8_t value,uint16_t index)
- {
- uint8_t temp_high = value >> 4;
- uint8_t temp_low = value & 0x0F;
- if(temp_high < 0x0A) { Packet_To_Transmit[index] = temp_high + 48;}
- else { Packet_To_Transmit[index] = temp_high + 55; }
- if(temp_low < 0x0A) { Packet_To_Transmit[index+1] = temp_low + 48; }
- else { Packet_To_Transmit[index+1] = temp_low + 55; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement