|
@@ -733,6 +733,7 @@ static
|
|
|
struct api_data *avalonmm_api_extra_device_status(struct cgpu_info * const proc)
|
|
struct api_data *avalonmm_api_extra_device_status(struct cgpu_info * const proc)
|
|
|
{
|
|
{
|
|
|
struct cgpu_info * const dev = proc->device;
|
|
struct cgpu_info * const dev = proc->device;
|
|
|
|
|
+ struct avalonmm_chain_state * const chain = dev->device_data;
|
|
|
struct thr_info * const thr = dev->thr[0];
|
|
struct thr_info * const thr = dev->thr[0];
|
|
|
struct avalonmm_module_state * const module = thr->cgpu_data;
|
|
struct avalonmm_module_state * const module = thr->cgpu_data;
|
|
|
struct api_data *root = NULL;
|
|
struct api_data *root = NULL;
|
|
@@ -749,6 +750,8 @@ struct api_data *avalonmm_api_extra_device_status(struct cgpu_info * const proc)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ root = api_add_uint8(root, "Fan Percent", &chain->fan_desired, false);
|
|
|
|
|
+
|
|
|
strcpy(buf, "Fan RPM ");
|
|
strcpy(buf, "Fan RPM ");
|
|
|
for (int i = 0; i < 2; ++i)
|
|
for (int i = 0; i < 2; ++i)
|
|
|
{
|
|
{
|