|
@@ -7776,6 +7776,7 @@ Sigma_Exit:
|
|
|
- `P` - power
|
|
|
- `C` - capacitance
|
|
|
- `S` - set 0=disable 1=enable (default)
|
|
|
+ - `B` - beep on warning threshold 0=disable 1=enable (default)
|
|
|
- `E` - error threshold (define min/max values in variants)
|
|
|
- `W` - warning threshold (define min/max values in variants)
|
|
|
- `T` - ambient temperature correction
|
|
@@ -7785,25 +7786,27 @@ Sigma_Exit:
|
|
|
{
|
|
|
// parse all parameters
|
|
|
float P = NAN, C = NAN, R = NAN, E = NAN, W = NAN, T = NAN, A = NAN;
|
|
|
- int8_t I = -1, S = -1;
|
|
|
+ int8_t I = -1, S = -1, B = -1;
|
|
|
if(code_seen('C')) C = code_value();
|
|
|
if(code_seen('P')) P = code_value();
|
|
|
if(code_seen('I')) I = code_value_short();
|
|
|
if(code_seen('R')) R = code_value();
|
|
|
if(code_seen('S')) S = code_value_short();
|
|
|
+ if(code_seen('B')) B = code_value_short();
|
|
|
if(code_seen('E')) E = code_value();
|
|
|
if(code_seen('W')) W = code_value();
|
|
|
if(code_seen('T')) T = code_value();
|
|
|
if(code_seen('A')) A = code_value();
|
|
|
|
|
|
// report values if nothing has been requested
|
|
|
- if(isnan(C) && isnan(P) && isnan(R) && isnan(E) && isnan(W) && isnan(T) && isnan(A) && I < 0 && S < 0) {
|
|
|
+ if(isnan(C) && isnan(P) && isnan(R) && isnan(E) && isnan(W) && isnan(T) && isnan(A) && I < 0 && S < 0 && B < 0) {
|
|
|
temp_model_report_settings();
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
// update all set parameters
|
|
|
if(S >= 0) temp_model_set_enabled(S);
|
|
|
+ if(B >= 0) temp_model_set_warn_beep(B);
|
|
|
if(!isnan(C) || !isnan(P) || !isnan(T) || !isnan(W) || !isnan(E)) temp_model_set_params(C, P, T, W, E);
|
|
|
if(I >= 0 && !isnan(R)) temp_model_set_resistance(I, R);
|
|
|
|