[settings] Translations and bug fixed

This commit is contained in:
Laury
2021-11-17 21:43:20 +01:00
parent 2d4c0f18d0
commit 6b12d1aebf
8 changed files with 22 additions and 23 deletions

View File

@@ -181,10 +181,10 @@ void AboutController::willDisplayCellForIndex(HighlightCell * cell, int index) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)cell;
static const char * mpVersion = MICROPY_VERSION_STRING;
static char batteryLevel[15];
int batteryLen = Poincare::Number::FloatNumber(Ion::Battery::voltage()).serialize(batteryLevel, 15, Poincare::Preferences::PrintFloatMode::Decimal, 3);
static char batteryLevel[5];
int batteryLen = Poincare::Number::FloatNumber(Ion::Battery::voltage()).serialize(batteryLevel, 4, Poincare::Preferences::PrintFloatMode::Decimal, 3);
batteryLevel[batteryLen] = 'V';
batteryLevel[batteryLen+1] = '\0';
batteryLevel[batteryLen + 1] = '\0';
static const char * messages[] = {
(const char*) Ion::username(),