This commit is contained in:
2026-08-24 23:43:53 +02:00
parent 34173674d8
commit a53fc1b33f

View File

@@ -12,7 +12,7 @@ static constexpr uint8_t max_curve_points = 7;
static uint8_t req[buf_size], resp[buf_size];
static const struct curve_point_t fan_curve[] = {
{ .temp = 37, .duty = 15 },
{ .temp = 35, .duty = 20 }, // ~150rpm
{ .temp = 40, .duty = 40 },
{ .temp = 46, .duty = 60 },
{ .temp = 50, .duty = 100 }
@@ -150,7 +150,6 @@ static void aio_set_fan_curve(libusb_device_handle *dev, const struct curve_poin
for (int i = 0; i < max_curve_points; i++)
padded[i] = (i < count) ? curve[i] : curve[count - 1];
// uint8_t req[16], resp[32];
req[0] = 0x40;
// setup request