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();