From 34e4828ee739f01d140ba7c18912b4ca060248f3 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Wed, 27 Sep 2023 23:04:48 +0200 Subject: [PATCH] driver: g-wolves refactor --- drivers/g-wolves/Makefile | 1 - drivers/g-wolves/g-wolves.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/g-wolves/Makefile b/drivers/g-wolves/Makefile index 21eda24..3f555c4 100644 --- a/drivers/g-wolves/Makefile +++ b/drivers/g-wolves/Makefile @@ -2,7 +2,6 @@ CC=gcc CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared LDFLAGS=$(shell pkg-config --libs libusb-1.0) -ASSETS=$(shell find devices/ -name '*.png') FINAL_ASSETS=$(BUILD_DIR)/drivers/assets/gwolves-htx.png $(BUILD_DIR)/drivers/assets/gwolves-hts_plus.png $(BUILD_DIR)/drivers/assets/gwolves-hsk_pro.png BUILD_DIR=../../build/ diff --git a/drivers/g-wolves/g-wolves.h b/drivers/g-wolves/g-wolves.h index 53e7951..10ce59f 100644 --- a/drivers/g-wolves/g-wolves.h +++ b/drivers/g-wolves/g-wolves.h @@ -1,3 +1,6 @@ +#ifndef G_WOLVES_H +#define G_WOLVES_H + #include #include #include @@ -195,3 +198,5 @@ struct REPORT_WIRELESS_FIRMWARE_VERSION uint8_t zeros[REPORT_MAX_SIZE - sizeof(report_header_t) - 7]; } __attribute__((packed)); static_assert(sizeof(struct REPORT_WIRELESS_FIRMWARE_VERSION) == REPORT_MAX_SIZE, "Report WIRELESS_FIRMWARE_VERSION not of right size"); + +#endif \ No newline at end of file