diff --git a/test/test.js b/test/test.js index ee4c47e..d14df42 100644 --- a/test/test.js +++ b/test/test.js @@ -4,7 +4,7 @@ var SerialPort = require("serialport"); var path = require("path"); var test = require("tape"); -const exec = path.require(process.env.IDF_PATH, "components", "esptool_py", "esptool", "esptool.py"); +const exec = path.join(process.env.IDF_PATH, "components", "esptool_py", "esptool", "esptool.py"); const portString = "/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_SERIAL_ID-if00-port0"; const buildPath = path.join(__dirname, "lora32", "build");