Jörg Wempe / Mbed OS Nucleo_L432KC_Test

Dependencies:   BufferedSerial SDFileSystem

Revision:
3:4cec1c6e6dbc
Parent:
2:6bb642c850bc
--- a/main.cpp	Tue Apr 09 15:01:50 2019 +0000
+++ b/main.cpp	Tue Apr 09 17:38:47 2019 +0000
@@ -7,7 +7,6 @@
 //SETUP
 SDFileSystem sd(SPI1_MOSI, SPI1_MISO, SPI1_SCLK, SDsel, "sd");
 BufferedSerial AMB(TXD1, RXD1, 512);
-//Serial AMB(TXD1,RXD1,bautRate);
 Serial pc(SERIAL_TX, SERIAL_RX); // TX RX
 DigitalOut greenLED(LED1);
 AnalogIn   uIn(Uin);
@@ -15,7 +14,7 @@
 
 float aRef = 3.33;
 
-#include "funktions.h"  // und Prototypen
+#include "funktions.h"  // und Prototype
 
 int main()
 {
@@ -62,7 +61,7 @@
         if(fp == NULL) {
             pc.printf("Could not open file for append data\n");
         }
-        fprintf(fp, "Uin %f;uBatt %f \n", uIn.read()*aRef*12, uBatt.read()*aRef*12);
+        fprintf(fp, "Uin %f;uBatt %f \n", uIn.read()*aRef*12, uBatt.read()*aRef*2);
         fclose(fp);
 
         pc.printf("\n");