瀏覽代碼

Remove a variable that caused a compiler warning

Bernd Gottschlag 5 年之前
父節點
當前提交
011303042b
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. 2
    4
      weather-sensor/firmware/bme280_interface.c

+ 2
- 4
weather-sensor/firmware/bme280_interface.c 查看文件

@@ -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…
取消
儲存