Skip to content

Commit

Permalink
Fix arguments of fram functions in RingArray
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchmela committed Sep 16, 2024
1 parent e6a9150 commit ebd09f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sts1CobcSw/FramSections/RingArray.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ template<typename T, Section ringArraySection, std::size_t nCachedElements>
auto RingArray<T, ringArraySection, nCachedElements>::ReadElement(RingIndex index) -> T
{
auto address = subsections.template Get<"array">().begin + index.get() * elementSize;
return Deserialize<T>(fram::ReadFrom<serialSize<T>>(address, value_of(spiTimeout)));
return Deserialize<T>(fram::ReadFrom<serialSize<T>>(address, spiTimeout));
}


Expand All @@ -221,6 +221,6 @@ auto RingArray<T, ringArraySection, nCachedElements>::WriteElement(RingIndex ind
-> void
{
auto address = subsections.template Get<"array">().begin + index.get() * elementSize;
fram::WriteTo(address, Span(Serialize(t)), value_of(spiTimeout));
fram::WriteTo(address, Span(Serialize(t)), spiTimeout);
}
}

0 comments on commit ebd09f5

Please sign in to comment.