Solved
Proper way to use scanf with uint8_t
What is the best way to use sscanf with uint8_t?
When I use:
uint8_t x ;
char* y = "23" ;
sscanf ( y , "%hhu" , &x ) ;I stuck at:
void HardFault_Handler(void)
I found following workaround that works:
uint16_t x1 ;
uint8_t x2 ;
const char* y = "23" ;
sscanf ( y , "%hu" , &x1 ) ;
x2 = (uint8_t) x1 ;but it doesn't look best. So what is the right way of processing uint8_t in above case?
V/r
yabool2001

