Skip to content

Commit

Permalink
Ignore when mode=-1
Browse files Browse the repository at this point in the history
  • Loading branch information
syouji committed Mar 15, 2017
1 parent c7b0ab5 commit 5069917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vehicle/zmp/autoware_socket/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void Update(void *p)
void SetState(int mode, int gear, void* p)
{
// 0=manual, 1=str, 2=drv, 3=str+drv
if (mode != current_mode) {
if (mode >= 0 && mode != current_mode) {
current_mode = mode;
pthread_create(&_modesetter, NULL, MainWindow::ModeSetterEntry, p);
}
Expand Down

0 comments on commit 5069917

Please sign in to comment.