Yep, so long as vssSpeed isn't already declared as a global variable (looks like it's free to me).
Though you may want to copy/paste the whole subroutine and give it a unique name like LEDnumFloatVSSspeed(). The "float distance = " line isn't doing anything useful in this routine, so you can delete it. Then go up to the top of the program and add &LEDnumFloatVSSspeed to LEDrenderPage, and change #define numLEDpages to 4. Or you can just replace &LEDnumVehicleSpeed on the list and leave numLEDpages at 3.
|