mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion] Fix bench build
This commit is contained in:
committed by
LeaNumworks
parent
7d48e84ac3
commit
8b0d8aa935
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user