aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/sensor.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-11 18:22:32 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-11 18:22:32 +0200
commit1d385074e33f831e88499603c46e25170b770ada (patch)
tree2c3be484018110bdf652cf69f363d6d35d456838 /stm32f091/sensor.c
parent5b1f94522624e18fe9fd94478ada1c8d8997b747 (diff)
working data receive from si7021 module
Diffstat (limited to 'stm32f091/sensor.c')
-rw-r--r--stm32f091/sensor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stm32f091/sensor.c b/stm32f091/sensor.c
index 04181cf..77ade64 100644
--- a/stm32f091/sensor.c
+++ b/stm32f091/sensor.c
@@ -11,8 +11,7 @@
#define REG_HUM ((uint8_t)(0xF5))
uint8_t ws_sensor_temperature() {
- HAL_UART_Transmit(&huart2, (uint8_t * const) "hello world!", 13, 100);
- return 0;
+ HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
uint8_t buf[12];
int16_t val;
float temp_c;
@@ -45,7 +44,7 @@ void ws_sensor_read() {
void ws_sensor_read_task() {
while (1) {
ws_sensor_read();
- vTaskDelay(portTICK_PERIOD_MS * 1000 * 60);
+ vTaskDelay(portTICK_PERIOD_MS * 1000 * 1);
}
}