Skip to content

Commit

Permalink
Fix inconsistent increment/decrement when setting input events
Browse files Browse the repository at this point in the history
Fixes #99
  • Loading branch information
EvenAR committed Feb 27, 2024
1 parent 7dd3b1c commit ec6b686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimConnectConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ class SimConnectConnection extends EventEmitter {
if (typeof value === 'string') {
packet.putInt32(value.length).putString(value);
} else {
packet.putInt32(4).putFloat32(value);
packet.putInt32(8).putFloat64(value);
}

return this._buildAndSend(packet);
Expand Down

0 comments on commit ec6b686

Please sign in to comment.