Skip to content

Commit

Permalink
Update timesyncsensor.go
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Nov 7, 2024
1 parent 7beab85 commit 4cd7e85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions timesyncsensor/timesyncsensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"go.viam.com/rdk/components/sensor"
"go.viam.com/rdk/logging"
"go.viam.com/rdk/resource"
"go.viam.com/rdk/services/datamanager"

"go.viam.com/utils"
)
Expand Down Expand Up @@ -146,12 +145,12 @@ func (s *timeSyncer) Readings(context.Context, map[string]interface{}) (map[stri
}

// Otherwise, do not sync.
s.logger.Debug("Not syncing. Current time not in sync window: " + currentTime)
s.logger.Debug("Not syncing. Current time not in sync window: " + currentTime.String())
return readings, nil
}

// Close closes the underlying generic.
func (s *timeSyncer) Close(ctx context.Context) error {
s.cancelFunc()
return nil
}
}

0 comments on commit 4cd7e85

Please sign in to comment.