X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=nucleo-test%2FSrc%2Ftest.c;h=ed2bae4b6e29c8fcf73a7beb2efac5b74c489d80;hb=228f98a7bea12a3cc18aab18f50951d3256bc5fe;hp=f49107fadd7cdb0f55ea42e064cf99bf178c916b;hpb=2b4caf2b8165a0614d67943fc44e82b6e3b2e151;p=home-hw.git diff --git a/nucleo-test/Src/test.c b/nucleo-test/Src/test.c index f49107f..ed2bae4 100644 --- a/nucleo-test/Src/test.c +++ b/nucleo-test/Src/test.c @@ -563,7 +563,7 @@ void run_test(void) for (;;) { - LL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin); + LL_GPIO_SetOutputPin(LD2_GPIO_Port, LD2_Pin); // debug_printf("Tick tock: %d\r\n", cnt); // Start measurement @@ -580,6 +580,8 @@ void run_test(void) ds_recv_block(9); int t = (int16_t)(ds_buf[0] | (ds_buf[1] << 8)); t = t*1000/16; + + LL_GPIO_ResetOutputPin(LD2_GPIO_Port, LD2_Pin); debug_printf("Temp: %d.%03d degC\r\n", t/1000, t%1000); LL_mDelay(1000);