Fixes for chprint, updating submodule to use our custom version.

This commit is contained in:
Fabien Poussin 2017-03-31 15:59:10 +02:00
parent 8f9a910aec
commit 27fb33ebd3
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit 3619aac78fcf83f102df27bdf47a6e349aebc4aa
Subproject commit 4560c4a1463ffe6fe538f9f67e125c78c19f8498

View File

@ -117,7 +117,13 @@ void initLcdController(void) {
}
static char * prepareVBattMapLine(engine_configuration_s *engineConfiguration, char *buffer) {
return buffer + chsnprintf(buffer, 23,"V%10.0f M%10.0f", getVBatt(PASS_ENGINE_PARAMETER_F), getRawMap());
char *ptr = buffer;
*ptr++ = 'V';
ptr = ftoa(ptr, getVBatt(PASS_ENGINE_PARAMETER_F), 10.0f);
ptr = appendStr(ptr, " M");
ptr = ftoa(ptr, getRawMap(), 10.0f);
return ptr;
}
static char * prepareCltIatTpsLine(Engine *engine, char *buffer) {