 #define DELAY_MS_10HZ	100		// milliseconds delay -> 10 Hz
 
 // update_temperature_pressure_step
-#define SENSOR_TEMP_PAUSED				0
+#define SENSOR_PAUSED				0
 #define SENSOR_REQ_TEMP					1
 #define SENSOR_READ_TEMP_REQ_PRESSURE	2
 #define SENSOR_READ_PRESSURE			3

	initialize_barometer();
	initialize_rotary_encoder();

	//sensors.update_temperature_pressure_step = SENSOR_TEMP_PAUSED;
	//setup_update_temperature_pressure_timer();

	setup_update_accel_gyro_mag_timer();
	//setup_update_display_timer();
}

void loop() {

		get_mag();
		sensors.changed_accel_gyro_mag = true;
	}

	if (sensors.do_update_temperature_pressure) {
		sensors.do_update_temperature_pressure = false;
		sensors.update_temperature_pressure_step = SENSOR_REQ_TEMP;	// first step
		get_temperature_pressure();
	} else if (sensors.do_update_temperature_pressure_step) {
		sensors.do_update_temperature_pressure_step = false;
		sensors.update_temperature_pressure_step++;
		get_temperature_pressure();
	}
	if (sensors.update_temperature_pressure_step == SENSOR_DONE){
		sensors.update_temperature_pressure_step = SENSOR_PAUSED;
		sensors.changed_temperatur_pressure = true;
	}
}
