Fixed compiler issues and bump to v0.4

This commit is contained in:
Magnus Persson
2022-01-01 13:53:07 +01:00
parent a6e265dc48
commit e4e8be1d13
7 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ PushTarget myPushTarget;
// Send the pressure value
//
void PushTarget::send(float angle, float gravity, float corrGravity, float temp, float runTime, bool force ) {
unsigned long timePassed = abs( millis() - ms );
unsigned long timePassed = abs( (long) (millis() - ms) );
unsigned long interval = myConfig.getSleepInterval()*1000;
if( ( timePassed < interval ) && !force) {