update to int AdcToInt and return value