How tom change generator frequency

Why not actually display what value is being read form the buttons, rather than show what subsequent code is producing? Come on, get to the source of the error!!!!