Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Maven CI

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '8'

- name: Install socat
run: sudo apt-get update && sudo apt-get install -y socat

- name: Create Virtual Serial Ports
run: |
nohup sudo socat -d -d pty,link=/dev/ttys001,raw,echo=0 pty,link=/dev/ttys002,raw,echo=0 > socat.log 2>&1 &
echo $! > socat.pid
sleep 3
cat socat.log
sudo chmod 666 /dev/ttys001 /dev/ttys002

- name: Maven Test
run: mvn test
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '8'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private void applyConnectionParameters() {

// Set connection parameters, if set fails return parameters object to original state
if (serialPort != null) {
if (disablePortConfiguration) {
if (this.disablePortConfiguration) {
serialPort.disablePortConfiguration();
}
serialPort.setComPortParameters(parameters.getBaudRate(), parameters.getDatabits(), parameters.getStopbits(), parameters.getParity());
Expand Down