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);
|
||||
|
||||
@@ -15,7 +15,7 @@ struct cpu_sensors_t {
|
||||
int16_t tdie;
|
||||
int16_t tctl;
|
||||
int16_t tccd1;
|
||||
// double pcore;
|
||||
double pcore;
|
||||
// double psoc;
|
||||
float ptotal;
|
||||
// double vcore;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
struct time_date_t {
|
||||
char date[12];
|
||||
char time[9];
|
||||
char time[12];
|
||||
};
|
||||
|
||||
struct memory_t {
|
||||
@@ -26,9 +26,10 @@ struct network_t {
|
||||
};
|
||||
|
||||
struct syssensors_t {
|
||||
char hwmon[64];
|
||||
// uint16_t fan_speed[1]; // just one fan (pump) we monitor
|
||||
int16_t t_sensor; // ntc temp sensor
|
||||
char hwmon[64];
|
||||
uint8_t _padding[6];
|
||||
};
|
||||
|
||||
void sys_get_time(struct time_date_t *td);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
#define P_BYTES(bytes, start) pretty_bytes((bytes), (start), (char[16]){0}, 16)
|
||||
#define P_NUM(num) pretty_num((num), (char[8]){0}, 8)
|
||||
#define P_NUM(num) pretty_num((num), (char[16]){0}, 16)
|
||||
|
||||
int get_instance_lock(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user