Skip to content

Commit

Permalink
04-saul: fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Mar 28, 2022
1 parent 672a167 commit a2ea035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 04-saul/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ saul_reg_t *accel_sensor = saul_reg_find_type(SAUL_SENSE_ACCEL);
/* read an acceleration value from the sensor */
phydat_t acceleration;
int acc_dim = saul_reg_read(accel_sensor, &acceleration);
if (dimensions < 1) {
if (acc_dim < 1) {
puts("Error reading a value from the device");
break;
}
Expand Down

0 comments on commit a2ea035

Please sign in to comment.