Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Jul 25, 2024
1 parent 5604287 commit 921d2a6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions raymarine/65379.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ module.exports = [
node: 'steering.autopilot.state',
value: function (n2k) {
var mode = n2k.fields['Pilot Mode']
if ( typeof mode === 'string' ) {
if ( mode === "Standby" )
{
if (typeof mode === 'string') {
if (mode === 'Standby') {
return 'standby'
} else if ( mode === "Auto, compass commanded" ) {
} else if (mode === 'Auto, compass commanded') {
return 'auto'
} else if ( mode === "Vane, Wind Mode" ) {
} else if (mode === 'Vane, Wind Mode') {
return 'wind'
} else if ( mode === "Track Mode" ) {
} else if (mode === 'Track Mode') {
return 'route'
} else if ( mode === "No Drift, COG referenced (In track, course changes)" ) {
} else if (
mode === 'No Drift, COG referenced (In track, course changes)'
) {
return 'route'
}
} else {
Expand Down

0 comments on commit 921d2a6

Please sign in to comment.