comparison Discovery/Src/t7.c @ 215:4a0ebade04f5 edit-fix

Bugfix, trivial: correctly present avg depth in overview custom And another trivial 2 letter fix, to present the avg depth value with 1 decimal to be consistent with the lower left corner presentation (if selected). Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Thu, 28 Mar 2019 09:54:29 +0100
parents 51a3aeffc6b3
children 9b4b3decd9ba
comparison
equal deleted inserted replaced
214:51a3aeffc6b3 215:4a0ebade04f5
3097 textpointer += snprintf(&text[textpointer],10,"\020%01.2f", stateUsed->lifeData.ppO2); 3097 textpointer += snprintf(&text[textpointer],10,"\020%01.2f", stateUsed->lifeData.ppO2);
3098 text[textpointer++] = '\n'; 3098 text[textpointer++] = '\n';
3099 text[textpointer++] = '\r'; 3099 text[textpointer++] = '\r';
3100 text[textpointer++] = '\t'; 3100 text[textpointer++] = '\t';
3101 if((pDecoinfoStandard->output_ceiling_meter > 99.9f) || (settingsGetPointer()->nonMetricalSystem)) 3101 if((pDecoinfoStandard->output_ceiling_meter > 99.9f) || (settingsGetPointer()->nonMetricalSystem))
3102 textpointer += snprintf(&text[textpointer],10,"\020%01.1f",unit_depth_float(pDecoinfoStandard->output_ceiling_meter)); 3102 textpointer += snprintf(&text[textpointer],10,"\020%01.0f",unit_depth_float(pDecoinfoStandard->output_ceiling_meter));
3103 else 3103 else
3104 textpointer += snprintf(&text[textpointer],10,"\020%01.0f",pDecoinfoStandard->output_ceiling_meter); 3104 textpointer += snprintf(&text[textpointer],10,"\020%01.1f",pDecoinfoStandard->output_ceiling_meter);
3105 text[textpointer++] = '\n'; 3105 text[textpointer++] = '\n';
3106 text[textpointer++] = '\r'; 3106 text[textpointer++] = '\r';
3107 text[textpointer++] = '\t'; 3107 text[textpointer++] = '\t';
3108 textpointer += snprintf(&text[textpointer],10,"\020%.0f", 100 * pDecoinfoStandard->output_relative_gradient); 3108 textpointer += snprintf(&text[textpointer],10,"\020%.0f", 100 * pDecoinfoStandard->output_relative_gradient);
3109 text[textpointer++] = '\n'; 3109 text[textpointer++] = '\n';