For diagnostic purposes I need to print the supply voltage to the board before the regulator which has been arranged to read in ADCH as voltage*10 by a voltage divider.
I tried making supply_voltage double and do the nice %2.1f thingy but the code grows,expectedly, by about 2K. :(
This works but seems unecessarilly clumsy.
printf("Supply voltage %2d.%1dV\n\r",(supply_voltage/10),(supply_voltage%10));