driver: g-wolves refactor

master
vhaudiquet 12 months ago
parent 894b7a98b8
commit 34e4828ee7
  1. 1
      drivers/g-wolves/Makefile
  2. 5
      drivers/g-wolves/g-wolves.h

@ -2,7 +2,6 @@ CC=gcc
CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared
LDFLAGS=$(shell pkg-config --libs libusb-1.0) 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 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/ BUILD_DIR=../../build/

@ -1,3 +1,6 @@
#ifndef G_WOLVES_H
#define G_WOLVES_H
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
@ -195,3 +198,5 @@ struct REPORT_WIRELESS_FIRMWARE_VERSION
uint8_t zeros[REPORT_MAX_SIZE - sizeof(report_header_t) - 7]; uint8_t zeros[REPORT_MAX_SIZE - sizeof(report_header_t) - 7];
} __attribute__((packed)); } __attribute__((packed));
static_assert(sizeof(struct REPORT_WIRELESS_FIRMWARE_VERSION) == REPORT_MAX_SIZE, "Report WIRELESS_FIRMWARE_VERSION not of right size"); static_assert(sizeof(struct REPORT_WIRELESS_FIRMWARE_VERSION) == REPORT_MAX_SIZE, "Report WIRELESS_FIRMWARE_VERSION not of right size");
#endif
Loading…
Cancel
Save