Change parameter to span
This commit is contained in:
parent
eff5bd0362
commit
7ccdaa02c2
2 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ Curve Curve::buildCurveFromHeader(
|
|||
}
|
||||
|
||||
Curve Curve::buildFromVelcurvePoints(
|
||||
const std::vector<std::pair<uint8_t, float>>& points,
|
||||
absl::Span<const std::pair<uint8_t, float>> points,
|
||||
Interpolator itp, bool invert)
|
||||
{
|
||||
Curve curve;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public:
|
|||
* @param invert whether to invert the curve
|
||||
*/
|
||||
static Curve buildFromVelcurvePoints(
|
||||
const std::vector<std::pair<uint8_t, float>>& points,
|
||||
absl::Span<const std::pair<uint8_t, float>> points,
|
||||
Interpolator itp = Interpolator::Linear, bool invert = false);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue