File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ uint32_t MAX31865Class::readRTD() {
132
132
writeByte (MAX31856_CONFIG_REG, readByte (MAX31856_CONFIG_REG) | MAX31856_CONFIG_ONE_SHOT);
133
133
delay (65 );
134
134
135
- // readings bytes
136
- uint16_t read = ( readBytes ( MAX31856_RTD_MSB_REG) );
137
- read = read >>1 ;
135
+ // reading word
136
+ uint16_t read = readWord ( MAX31856_RTD_MSB_REG);
137
+ read = read >> 1 ;
138
138
139
139
// disable bias
140
140
writeByte (MAX31856_CONFIG_REG, readByte (MAX31856_CONFIG_REG) & (MAX31856_CONFIG_BIAS_MASK));
@@ -158,7 +158,7 @@ uint8_t MAX31865Class::readByte(uint8_t addr) {
158
158
return read ;
159
159
}
160
160
161
- uint16_t MAX31865Class::readBytes (uint8_t addr) {
161
+ uint16_t MAX31865Class::readWord (uint8_t addr) {
162
162
uint16_t read = 0x00 ;
163
163
164
164
digitalWrite (_cs, LOW);
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class MAX31865Class {
70
70
71
71
private:
72
72
uint8_t readByte (uint8_t addr);
73
- uint16_t readBytes (uint8_t addr);
73
+ uint16_t readWord (uint8_t addr);
74
74
void writeByte (uint8_t addr, uint8_t data);
75
75
76
76
PinName _cs;
You can’t perform that action at this time.
0 commit comments