Clean up first_buttonwait_mode_frame, make it a bool instead of a counting int