mirror of https://github.com/rusefi/bldc.git
Disable app output when receiving UAVCAN commands
This commit is contained in:
parent
594e3bc789
commit
e474102bec
|
@ -510,6 +510,8 @@ static void handle_esc_raw_command(CanardInstance* ins, CanardRxTransfer* transf
|
||||||
|
|
||||||
volatile const app_configuration *conf = app_get_configuration();
|
volatile const app_configuration *conf = app_get_configuration();
|
||||||
|
|
||||||
|
app_disable_output(100);
|
||||||
|
|
||||||
switch (conf->uavcan_raw_mode) {
|
switch (conf->uavcan_raw_mode) {
|
||||||
case UAVCAN_RAW_MODE_CURRENT:
|
case UAVCAN_RAW_MODE_CURRENT:
|
||||||
mc_interface_set_current_rel(raw_val);
|
mc_interface_set_current_rel(raw_val);
|
||||||
|
|
Loading…
Reference in New Issue