Parcourir la source

Remove a variable that caused a compiler warning

Bernd Gottschlag il y a 5 ans
Parent
révision
011303042b
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2
    4
      weather-sensor/firmware/bme280_interface.c

+ 2
- 4
weather-sensor/firmware/bme280_interface.c Voir le fichier

@@ -58,11 +58,9 @@ void Set_BME280_Pins(void)
58 58
 /* Get one measurement in forced mode */
59 59
 void BME280_Get_Measurement(struct bme280_data * data)
60 60
 {
61
-	int8_t rslt = BME280_OK;
62
-
63
-	rslt = bme280_set_sensor_mode(BME280_FORCED_MODE, &deviceStructure);
61
+	bme280_set_sensor_mode(BME280_FORCED_MODE, &deviceStructure);
64 62
 	deviceStructure.delay_ms(req_delay);
65
-	rslt = bme280_get_sensor_data(BME280_ALL, data, &deviceStructure);
63
+	bme280_get_sensor_data(BME280_ALL, data, &deviceStructure);
66 64
 }
67 65
 
68 66
 /* Implementation of the interface function needed by the BME280 library */

Loading…
Annuler
Enregistrer