moved volt-switching to rt thread