Merge pull request #389 from fpoussin/chibios-update-2

Fixed Posix simulator.
This commit is contained in:
rusefi 2017-03-31 13:20:40 -04:00 committed by GitHub
commit 9694a276fa
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5a09c430bb5e38957cb45ca307abaa24e2062eae
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) {