Skip to content

Commit

Permalink
Merge pull request #642 from pavel-demin/develop
Browse files Browse the repository at this point in the history
fix cancel command in vna
  • Loading branch information
pavel-demin authored Nov 30, 2017
2 parents 413e251 + a20ece9 commit 0fe665e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/vna/client/vna.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def cancel(self):
self.sweepTimer.stop()
self.auto = False
self.reading = False
self.socket.write(struct.pack('<I', 8<<28))
self.socket.write(struct.pack('<I', 9<<28))
self.progressBar.setValue(0)
self.set_enabled(True)

Expand Down
2 changes: 1 addition & 1 deletion projects/vna/server/vna.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int main(int argc, char *argv[])
}
*rst |= 1;
break;
case 8:
case 9:
/* cancel */
*rst &= ~3;
*rst |= 4;
Expand Down

0 comments on commit 0fe665e

Please sign in to comment.