Skip to content

Commit 45db5da

Browse files
committed
Fixing compilation error.
1 parent 0b90807 commit 45db5da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/threading/Shared.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Shared
4444
void set(T const & val);
4545

4646
operator T();
47-
void operator = (T const & other);
47+
void operator = (T const & val);
4848
inline T peek() const { return _val; }
4949

5050

@@ -85,12 +85,12 @@ void Shared<T,QUEUE_SIZE>::set(T const & val)
8585
_mailbox.free(val_ptr);
8686
}
8787

88-
_val = other;
88+
_val = val;
8989

9090
T * val_ptr = _mailbox.try_alloc();
9191
if (val_ptr)
9292
{
93-
*val_ptr = other;
93+
*val_ptr = val;
9494
_mailbox.put(val_ptr);
9595
}
9696
}
@@ -102,9 +102,9 @@ Shared<T,QUEUE_SIZE>::operator T()
102102
}
103103

104104
template<class T, size_t QUEUE_SIZE>
105-
void Shared<T,QUEUE_SIZE>::operator = (T const & other)
105+
void Shared<T,QUEUE_SIZE>::operator = (T const & val)
106106
{
107-
set(other);
107+
set(val);
108108
}
109109

110110
#endif /* ARDUINO_THREADS_SHARED_HPP_ */

0 commit comments

Comments
 (0)