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
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);