Changed ints to longs

Need to use long variables for millis in charger control function