From 98469964a56bb03af0a0c5dfdbaaf31771f609f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 30 Jan 2017 09:46:54 +0100 Subject: [PATCH] fix typo --- lib/sensor_sdm120.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sensor_sdm120.c b/lib/sensor_sdm120.c index ba6d3e3..77f4951 100644 --- a/lib/sensor_sdm120.c +++ b/lib/sensor_sdm120.c @@ -151,7 +151,7 @@ void sensor_sdm120_setup(uint32_t baudrate) gpio_set_mode(GPIO(SENSOR_SDM120_REDE_PORT), GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO(SENSOR_SDM120_REDE_PIN)); // setup GPIO pin for receiver and driver output enable pin gpio_clear(GPIO(SENSOR_SDM120_REDE_PORT),GPIO(SENSOR_SDM120_REDE_PIN)); // disable driver output and enable receive output - // setup timer to wait for minimal time before sending transmitting + // setup timer to wait for minimal time before next transmission rcc_periph_clock_enable(RCC_TIM(SENSOR_SDM120_TIMER)); // enable clock for timer block timer_reset(TIM(SENSOR_SDM120_TIMER)); // reset timer state timer_set_mode(TIM(SENSOR_SDM120_TIMER), TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP); // set timer mode, use undivided timer clock,edge alignment (simple count), and count up