Skip to content

Commit

Permalink
DroneCAN: allow change of direction without reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 25, 2024
1 parent e0a91eb commit dd60eea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/DroneCAN/DroneCAN.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ static void handle_param_GetSet(CanardInstance* ins, CanardRxTransfer* transfer)
break;
default:
return;
}
}

// make dir_reversed change work without reboot
forward = 1 - dir_reversed;
}

/*
Expand Down

0 comments on commit dd60eea

Please sign in to comment.