diff --git a/.github/workflows/publish-armv7l.yml b/.github/workflows/publish-armv7l.yml index 34b7def..2ca4e9b 100644 --- a/.github/workflows/publish-armv7l.yml +++ b/.github/workflows/publish-armv7l.yml @@ -27,16 +27,20 @@ jobs: with: node-version: 18 cache: npm - + - name: Setup Python uses: actions/setup-python@v2 with: - python-version: '3.10' + python-version: '3.10' - name: Install and build run: | npm install npm run postinstall + # Build serialport for armv7l + cd release/app/node_modules/@serialport/bindings-cpp + npx node-gyp configure build + cd - npm run build - name: Publish releases diff --git a/src/main/electron-src/lib/serialManager.js b/src/main/electron-src/lib/serialManager.js index b0bc9a4..c8cfd19 100644 --- a/src/main/electron-src/lib/serialManager.js +++ b/src/main/electron-src/lib/serialManager.js @@ -175,7 +175,7 @@ class DataRecorder { }; stopRecord = () => { - this.shouldRecord = true; + this.shouldRecord = false; }; } diff --git a/src/renderer/components/DataPlot.tsx b/src/renderer/components/DataPlot.tsx index b6c1c6c..2ccce53 100644 --- a/src/renderer/components/DataPlot.tsx +++ b/src/renderer/components/DataPlot.tsx @@ -115,7 +115,7 @@ export default function DataViewer() { } setState(updateLines); } - }, [newData, state]); // Added state to dependency array + }, [newData]); // Added state to dependency array return ( <>