File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ class EepromStorage {
6666 return _instance->data ()[pos];
6767 }
6868
69- void write (size_t pos, Span<const uint8_t > data) const {
69+ void write (uint16_t pos, Span<const uint8_t > data) const {
7070 auto * ptr = const_cast <uint8_t *>(_instance->data ()) + pos;
7171 memmove_P (ptr, data.data (), data.size ());
7272 }
7373
74- void write (size_t pos, uint8_t value) const {
74+ void write (uint16_t pos, uint8_t value) const {
7575 write (pos, Span<const uint8_t >(&value, 1 ));
7676 }
7777
78- void fill (size_t pos, size_t size, uint8_t value) const {
78+ void fill (uint16_t pos, size_t size, uint8_t value) const {
7979 auto * ptr = const_cast <uint8_t *>(_instance->data ()) + pos;
8080 std::fill (ptr, ptr + size, value);
8181 }
You can’t perform that action at this time.
0 commit comments