Fixup: Pass RestingHeartRate to SetHeartRate().
[kraftakt.git] / gfit / gfit.go
index 33e5a66..ea41b95 100644 (file)
@@ -343,7 +343,7 @@ func (c *Client) heartRate(ctx context.Context, dataSource *fitness.DataSource,
        return results, maxEndTime, nil
 }
 
-func (c *Client) SetHeartRate(ctx context.Context, totalDurations []fitbit.HeartRateZone, startOfDay time.Time) error {
+func (c *Client) SetHeartRate(ctx context.Context, totalDurations []fitbit.HeartRateZone, restingHeartRate int, startOfDay time.Time) error {
        dataSource := &fitness.DataSource{
                Application: Application(ctx),
                DataType: &fitness.DataType{