Plymouth ELEC351 Group T / Mbed OS ELEC351

Dependencies:   BME280 BMP280 TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SERIAL.cpp Source File

SERIAL.cpp

00001 #include "SERIAL.hpp"
00002 int Log_Value = 0;
00003 bool Decimal_Check(char Input[100])
00004 {
00005     for(int x = 0; x < sizeof(Input); x++)
00006     {
00007         if(Input[x] == '.'){return true;}
00008     }
00009     return false;   
00010 }
00011 
00012 int Decimal_Position(char Input[100])
00013 {
00014     for(int x = 0; x < sizeof(Input); x++)
00015     {
00016         if(Input[x] == '.'){return x;}
00017     }
00018     return 0;    
00019 }