diff --git a/stm32f303/src/comps/term.comp b/stm32f303/src/comps/term.comp index ac75513c..8bc8b6fa 100644 --- a/stm32f303/src/comps/term.comp +++ b/stm32f303/src/comps/term.comp @@ -293,12 +293,15 @@ NRT( buf[8 + 1] = 0; if (cdc_is_connected() && PIN(send_step) > 0) { - PIN(con) = 1.0; cdc_tx(buf,9); - }else{ - PIN(con) = 0.0; } } + + if (cdc_is_connected()) { + PIN(con) = 1.0; + }else{ + PIN(con) = 0.0; + } PIN(buf_use) = bc;