Compare commits

...
3 Commits
2 changed files with 25 additions and 3 deletions
+19
View File
@@ -79,3 +79,22 @@ jobs:
with:
files: monocoque-${{ matrix.os }}.rpm
arch-build:
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
steps:
- uses: actions/checkout@v3
- name: Set proper repository url in PKGBUILD
run: sed -i "s|%URL%|${{ github.server_url }}/${{ github.repository }}|" .github/workflows/PKGBUILD
- name: Build Arch Linux package
uses: ./
with:
BUILD_SCRIPT: extra-x86_64-build
PKGBUILD: $GITHUB_WORKSPACE/tools/distro/arch/git/PKGBUILD
OUTDIR: $HOME/arch-packages
- name: Release the Package
uses: softprops/action-gh-release@v1
with:
files: $HOME/arch-packages/monocoque*.zst
+6 -3
View File
@@ -8,7 +8,7 @@
#include "../../helper/confighelper.h"
#include "../slog/slog.h"
#define SIMNETPEDALS_BUFSIZE 9
#define SIMNETPEDALS_BUFSIZE 64
//Byte[0] : 0x01 (fixed) = Report ID
//Byte[1] : 0x00 (fixed)
@@ -39,8 +39,11 @@ int simnetpedals_update(USBGenericHapticDevice* usbhapticdevice, int effecttype,
{
motormultiple = 2;
}
bytes[3 + (motormultiple * 2)] = usbhapticdevice->frequency;
bytes[4 + (motormultiple * 2)] = usbhapticdevice->amplitude;
if(play > 0)
{
bytes[3 + (motormultiple * 2)] = usbhapticdevice->frequency;
bytes[4 + (motormultiple * 2)] = usbhapticdevice->amplitude;
}
if (usbhapticdevice->handle)