![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
FINAL PROJECT isn't it
Fork of ELEC351 by
SERIAL.cpp@48:244d6d81bb52, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 00:37:01 2018 +0000
- Revision:
- 48:244d6d81bb52
- Parent:
- 47:6d128e500875
- Child:
- 52:99915f5240b2
HOLY SHIT IT WORKS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 25:36699ed589ab | 1 | #include "SERIAL.hpp" |
thomasmorris | 48:244d6d81bb52 | 2 | int Log_Value = 0; |
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 | 25:36699ed589ab | 19 | } |