Selaa lähdekoodia

Remove a variable that caused a compiler warning

Bernd Gottschlag 5 vuotta sitten
vanhempi
commit
011303042b
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2
    4
      weather-sensor/firmware/bme280_interface.c

+ 2
- 4
weather-sensor/firmware/bme280_interface.c Näytä tiedosto

58
 /* Get one measurement in forced mode */
58
 /* Get one measurement in forced mode */
59
 void BME280_Get_Measurement(struct bme280_data * data)
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
 	deviceStructure.delay_ms(req_delay);
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
 /* Implementation of the interface function needed by the BME280 library */
66
 /* Implementation of the interface function needed by the BME280 library */

Loading…
Peruuta
Tallenna