Fix copy&paste issue, giving wrongn readings
This commit is contained in:
@@ -93,7 +93,7 @@ int main(void) {
|
||||
measurement |= (val.second << 8);
|
||||
|
||||
val = i2c1->read(0x2A, 0x14);
|
||||
measurement |= val.second << 16;
|
||||
measurement |= val.second;
|
||||
|
||||
while (1) {
|
||||
measurement = 0;
|
||||
@@ -104,7 +104,7 @@ int main(void) {
|
||||
measurement |= (val.second << 8);
|
||||
|
||||
val = i2c1->read(0x2A, 0x14);
|
||||
measurement |= val.second << 16;
|
||||
measurement |= val.second;
|
||||
|
||||
usart2->println("Measurement " + std::to_string(measurement) + " counts");
|
||||
|
||||
|
Reference in New Issue
Block a user