added function to update power.. but not tested..
This commit is contained in:
@@ -79,6 +79,15 @@ int cm_heatsinkEmul_setFan(cm_heatsinkEmul_t *inst, float fan_speed){
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cm_heatsinkEmul_setPower(cm_heatsinkEmul_t *inst, float power){
|
||||
|
||||
if(!isStructOk(inst)) return 1;
|
||||
inst->power = power;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
int cm_heatsinkEmul_init(cm_heatsinkEmul_t *inst, cm_heatsink_thermalElement_t *elements, int elements_Count, float C_th, float power, float ambientTemp){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user