round returns a float. Your sprintf is expecting an int. Make those temp variables int instead. Don't try to fix it with %f, sprintf doesn't support it. You may have to use dtostrf to get around this.
round returns a float. Your sprintf is expecting an int. Make those temp variables int instead. Don't try to fix it with %f, sprintf doesn't support it. You may have to use dtostrf to get around this.