Skip to content
Snippets Groups Projects
Commit 9d5f58f4 authored by Václav Jelínek's avatar Václav Jelínek
Browse files

Repair OC ultrasonic autobuild error

parent d1403096
No related branches found
No related tags found
No related merge requests found
Pipeline #96205 passed
.idea
*.asv
\ No newline at end of file
*.asv
/oc_sensors/.vs
/oc_sensors/.settings
/.vs
......@@ -184,9 +184,10 @@ void measure_data(void) {
}
void choose_send_data(void) {
uint16_t distance = 0;
switch (sensor_state) {
case S_MODE_DISTANCE:
uint16_t distance = (uint16_t) ultra_sensor.distance;
distance = (uint16_t) ultra_sensor.distance;
send_data(sensor_state, &distance, 2, USART1);
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment