projects
/
kraftakt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement storing of calories expended.
[kraftakt.git]
/
gfitsync.go
diff --git
a/gfitsync.go
b/gfitsync.go
index
b7aa36d
..
beb44d7
100644
(file)
--- a/
gfitsync.go
+++ b/
gfitsync.go
@@
-251,5
+251,9
@@
func handleNotification(ctx context.Context, s *fitbit.Subscription) error {
return fmt.Errorf("gfitClient.SetSteps(%d) = %v", summary.Summary.Steps, err)
}
return fmt.Errorf("gfitClient.SetSteps(%d) = %v", summary.Summary.Steps, err)
}
+ if err := gfitClient.SetCalories(ctx, summary.Summary.CaloriesOut, tm); err != nil {
+ return fmt.Errorf("gfitClient.SetCalories(%d) = %v", summary.Summary.CaloriesOut, err)
+ }
+
return nil
}
return nil
}