I need to use printf() to print a uint16_t. This SO answer (How to print uint32_t and uint16_t variables value?) says I need to use inttypes.h.
However, I\'m working on
short int is the smallest at least 16 bits long so convert the value to unsigned short int and print it with %hu.
short int
unsigned short int
%hu