Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
SERIAL.cpp@50:3d61ca637399, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 12:19:12 2018 +0000
- Revision:
- 50:3d61ca637399
- Parent:
- 48:244d6d81bb52
Dynamic Dating Working
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 | } |