Bläddra i källkod

Remove a variable that caused a compiler warning

Bernd Gottschlag 5 år sedan
förälder
incheckning
011303042b
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2
    4
      weather-sensor/firmware/bme280_interface.c

+ 2
- 4
weather-sensor/firmware/bme280_interface.c Visa fil

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…
Avbryt
Spara