#include "kit_string.h" #include "kit_debug.h" void char_to_bcd_string(uint8_t value, char *str) { *str++ = (uint8_t) ((value / 10) + '0'); *str++ = (uint8_t) ((value % 10) + '0'); *str = 0x00; }