diff --git a/GPSSpeedMultiCore.ino b/GPSSpeedMultiCore.ino index b5238f8..e166dab 100644 --- a/GPSSpeedMultiCore.ino +++ b/GPSSpeedMultiCore.ino @@ -65,7 +65,7 @@ bool setStartBrightness() { double az, el; setTime(myGPS.getHour(),myGPS.getMinute(),myGPS.getSecond(),myGPS.getDay(),myGPS.getMonth(),myGPS.getYear()); time_t timeUtc=now(); - calcHorizontalCoordinates(timeUtc,myGPS.getLatitude(),myGPS.getLongitude(),az,el); + calcHorizontalCoordinates(timeUtc,(double) myGPS.getLatitude()*10000000,(double) myGPS.getLongitude() * 10000000,az,el); if(el>SUNRISESET_STD_ALTITUDE){ screenBrightnessCurrent=15;