Skip to content

Commit c25c3d5

Browse files
committed
Fix type from char to uint8-t
1 parent e4ed94e commit c25c3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/espurna/sensors/A02YYUSensor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class A02YYUSensor : public BaseSensor {
105105
{
106106
for (; n > 0; n--)
107107
{
108-
char c = _serial->read();
108+
uint8_t c = _serial->read();
109109

110110
if (_rxCount < _RX_LEN) {
111111
_rx[_rxIndex] = c;
@@ -136,7 +136,7 @@ class A02YYUSensor : public BaseSensor {
136136

137137
// ---------------------------------------------------------------------
138138

139-
char _rx[_RX_LEN];
139+
uint8_t _rx[_RX_LEN];
140140
Stream* _serial { nullptr };
141141
double _distance = 0;
142142
uint8_t _rxIndex = 0;

0 commit comments

Comments
 (0)