driver: g-wolves refactor

This commit is contained in:
Valentin Haudiquet 2023-09-27 23:04:48 +02:00
parent 894b7a98b8
commit 34e4828ee7
2 changed files with 5 additions and 1 deletions

View File

@ -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/

View File

@ -1,3 +1,6 @@
#ifndef G_WOLVES_H
#define G_WOLVES_H
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
@ -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