Commit fb8da95e authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Committer: Daan Vreeken <pa4dan@RacebeestV3.VEHosting.LAN>

	modified:   controller/ec/esc_device.c

Whoops. Make sure 'str' is initialized before we try to print it.
parent 99246a5c
......@@ -163,6 +163,7 @@ static enum controller_bus_state esc_device_poll(struct controller_bus_client *c
case ESC_AL_STATUS_MBOX_SOE:
case ESC_AL_STATUS_MBOX_VOE:
default:
str = "(unknown)";
break;
}
log_send(LOG_T_ERROR, "%s: ESC status code changed: 0x%04x: %s",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment