Skip to content

Commit

Permalink
Mavgen JS: Add require Buffer for React
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 authored and peterbarker committed Mar 19, 2024
1 parent 5cedc2e commit 2628769
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/mavgen_javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def generate_preamble(outf, msgs, args, xml):
events = require("events"), // for .emit(..), MAVLink20Processor inherits from events.EventEmitter
util = require("util");
var Buffer = require('buffer').Buffer; // required in react - no impact in node
var Long = require('long');
// Add a convenience method to Buffer
Expand Down

0 comments on commit 2628769

Please sign in to comment.