[ion] Fix bench build

This commit is contained in:
Émilie Feral
2019-10-16 11:51:44 +02:00
committed by LeaNumworks
parent 7d48e84ac3
commit 8b0d8aa935
2 changed files with 2 additions and 2 deletions

View File

@@ -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<float>(result, responseBuffer+4, bufferSize, glyphLength, precision, Poincare::Preferences::PrintFloatMode::Decimal);

View File

@@ -1,7 +1,7 @@
#include <ion/src/device/bench/bench.h>
#include <ion/backlight.h>
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();