Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Committer:
thomasmorris
Date:
Mon Jan 08 21:53:40 2018 +0000
Revision:
47:6d128e500875
Parent:
26:78f5e454e59f
Child:
48:244d6d81bb52
FINAL working copy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 25:36699ed589ab 1 #include "SERIAL.hpp"
thomasmorris 25:36699ed589ab 2
thomasmorris 47:6d128e500875 3 bool Decimal_Check(char Input[100])
thomasmorris 47:6d128e500875 4 {
thomasmorris 47:6d128e500875 5 for(int x = 0; x < sizeof(Input); x++)
thomasmorris 47:6d128e500875 6 {
thomasmorris 47:6d128e500875 7 if(Input[x] == '.'){return true;}
thomasmorris 47:6d128e500875 8 }
thomasmorris 47:6d128e500875 9 return false;
thomasmorris 47:6d128e500875 10 }
thomasmorris 47:6d128e500875 11
thomasmorris 47:6d128e500875 12 int Decimal_Position(char Input[100])
thomasmorris 47:6d128e500875 13 {
thomasmorris 47:6d128e500875 14 for(int x = 0; x < sizeof(Input); x++)
thomasmorris 47:6d128e500875 15 {
thomasmorris 47:6d128e500875 16 if(Input[x] == '.'){return x;}
thomasmorris 47:6d128e500875 17 }
thomasmorris 47:6d128e500875 18 return 0;
thomasmorris 47:6d128e500875 19 }
thomasmorris 47:6d128e500875 20
thomasmorris 25:36699ed589ab 21
chills 26:78f5e454e59f 22
thomasmorris 47:6d128e500875 23
thomasmorris 25:36699ed589ab 24 void HELP()
thomasmorris 25:36699ed589ab 25 {
thomasmorris 25:36699ed589ab 26 //Mutex This
thomasmorris 25:36699ed589ab 27 cout << "Avalible Commands are: "<< endl;
thomasmorris 25:36699ed589ab 28 cout << "READ ALL , DELETE ALL READ<n> ,DELETE<n> , SETDATE<dd> <mm> <yyyy> , SETTIME <hh> <mm> <ss>, SETT <T> , STATE <x>, LOGGING <x>, HELP"<< endl;
thomasmorris 25:36699ed589ab 29 }