make it more or less work with 'warning_level=everything'
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
#include <libusb-1.0/libusb.h>
|
||||
|
||||
#define AIO_USB_VID 0x1b1c
|
||||
#define AIO_USB_PID 0x0c13
|
||||
#define AIO_USB_VID 0x1b1cU
|
||||
#define AIO_USB_PID 0x0c13U
|
||||
|
||||
#define AIO_COLOR_CYAN { 0, 255, 255 }
|
||||
#define AIO_COLOR_WHITE { 255, 255, 255 }
|
||||
@@ -16,7 +16,7 @@
|
||||
// roughly converts fan speed to duty
|
||||
#define SPD2DTY(spd) MAX(0, MIN(spd * 100 / max_fan_speed, 100))
|
||||
|
||||
enum aio_pump_mode_t : uint8_t {
|
||||
enum aio_pump_mode_t {
|
||||
QUIET,
|
||||
BALANCED,
|
||||
EXTREME
|
||||
@@ -48,6 +48,7 @@ struct aio_t {
|
||||
float t_b;
|
||||
uint16_t pump_speed;
|
||||
uint16_t fan_speed[2];
|
||||
uint8_t _padding[2];
|
||||
};
|
||||
|
||||
void aio_detect(struct aio_t *aio, float t_quiet, float t_balanced);
|
||||
|
||||
Reference in New Issue
Block a user