Skip to content

Commit

Permalink
Merge branch 'nowrep:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowwa authored Sep 10, 2023
2 parents 472e806 + 602ffe4 commit 8a8e148
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Main

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Dependencies
run: |
sudo apt update
sudo apt install libhidapi-dev libdbus-1-dev libudev-dev
- name: Build
run: make -C ${{github.workspace}}

- name: Install
run: sudo make -C ${{github.workspace}} install
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LIBS += $(shell pkg-config --libs hidapi-hidraw)
LIBS += $(shell pkg-config --libs libudev)

TARGET = dualsensectl
VERSION = 0.3
VERSION = 0.4

ifeq ($(BUILD),debug)
CFLAGS += -O0 -g
Expand Down
5 changes: 5 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,11 @@ int main(int argc, char *argv[])
argv += 2;
}

if (argc < 2) {
print_help();
return 1;
}

struct dualsense ds;
if (!dualsense_init(&ds, dev_serial)) {
return 1;
Expand Down

0 comments on commit 8a8e148

Please sign in to comment.