Skip to content

Commit

Permalink
fix: adjust heading fails when in Wind mode (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Sep 10, 2020
1 parent 966a168 commit 8253861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raymarinen2k.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ module.exports = function(app) {
pilot.putAdjustHeading = (context, path, value, cb) => {
var state = app.getSelfPath(state_path)

if ( state !== 'auto' ) {
return { message: 'Autopilot not in auto mode', ...FAILURE_RES }
if ( state !== 'auto' && state !== 'wind' ) {
return { message: 'Autopilot not in auto or wind mode', ...FAILURE_RES }
} else {
let aString
switch (value) {
Expand Down

0 comments on commit 8253861

Please sign in to comment.