Skip to content

Commit

Permalink
fix: put wind not failing (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Jun 4, 2021
1 parent c721e36 commit d366e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raymarinen2k.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = function(app) {
return { message: 'Autopilot not in wind vane mode', ...FAILURE_RES }
} else {
var new_value = Math.trunc(degsToRad(value) * 10000)
var msg = util.format(command_format, (new Date()).toISOString(), default_src,
var msg = util.format(heading_command, (new Date()).toISOString(), default_src,
autopilot_dst, padd((new_value & 0xff).toString(16), 2), padd(((new_value >> 8) & 0xff).toString(16), 2))

sendN2k([msg])
Expand Down

0 comments on commit d366e21

Please sign in to comment.