diff --git a/04-saul/README.md b/04-saul/README.md index 50a7fe5..b0c63da 100644 --- a/04-saul/README.md +++ b/04-saul/README.md @@ -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; }