Topic: prefix a leading zero to a char variable
I want to display the following data with a leading zero if the value is less than 10.
value = minutes_run;
dtostrf(value, 2, 0, RemoteXY.minutes_run);
value = seconds_run;
dtostrf(value, 2, 0, RemoteXY.seconds_run);
I'm having a mind-melt on how best to do it, I know it should be straightforward enough surely ...
Can anyone help, I'm running out of time on this project ....