driver: g-wolves refactor
This commit is contained in:
		@@ -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/
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user