From 8b0d8aa935b1df6bb1bc474775f3c42e1c174cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 16 Oct 2019 11:51:44 +0200 Subject: [PATCH] [ion] Fix bench build --- ion/src/device/bench/command/adc.cpp | 2 +- ion/src/device/bench/runner.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ion/src/device/bench/command/adc.cpp b/ion/src/device/bench/command/adc.cpp index 9e3a568fe..0c7a26fce 100644 --- a/ion/src/device/bench/command/adc.cpp +++ b/ion/src/device/bench/command/adc.cpp @@ -15,7 +15,7 @@ void ADC(const char * input) { } float result = Ion::Battery::voltage(); constexpr int precision = 8; - constexpr int bufferSize = Poincare::PrintFloat::bufferSizeForFloatsWithPrecision(precision); + constexpr int bufferSize = Poincare::PrintFloat::charSizeForFloatsWithPrecision(precision); constexpr int glyphLength = Poincare::PrintFloat::glyphLengthForFloatWithPrecision(precision); char responseBuffer[bufferSize+4] = {'A', 'D', 'C', '='}; // ADC= Poincare::PrintFloat::ConvertFloatToText(result, responseBuffer+4, bufferSize, glyphLength, precision, Poincare::Preferences::PrintFloatMode::Decimal); diff --git a/ion/src/device/bench/runner.cpp b/ion/src/device/bench/runner.cpp index 17bc2b604..607e71995 100644 --- a/ion/src/device/bench/runner.cpp +++ b/ion/src/device/bench/runner.cpp @@ -1,7 +1,7 @@ #include #include -void ion_main(int argc, char * argv[]) { +void ion_main(int argc, const char * const argv[]) { // Initialize the backlight Ion::Backlight::init(); Ion::Device::Bench::run();