Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables and make actionFlag a uint8_t #107

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions ESP-ECU_v9_8_exp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ int testCounter = 0;
time_t switchonTime = 0;
bool dayTime=true;

byte mDay = 0;
String maan = "";
int actionFlag = 0;
uint8_t actionFlag = 0;

// variables wificonfig
char pswd[11] = "0000";
Expand All @@ -96,11 +94,10 @@ int testCounter = 0;
#define YC600_MAX_NUMBER_OF_INVERTERS 9
char inMessage[CC2530_MAX_SERIAL_BUFFER_SIZE] = {0};
int readCounter = 0;
char messageHead[5];

bool diagNose=false;
bool Polling = true; // when true we have automatic polling
int errorCode=10;
int recovered = 0;

int t_saved[YC600_MAX_NUMBER_OF_INVERTERS] = {0};
float en_saved[YC600_MAX_NUMBER_OF_INVERTERS][4] = {0};
Expand Down Expand Up @@ -151,7 +148,6 @@ int event = 0;

int dst;
int iKeuze;
int inverterTopoll = 0;
bool timeRetrieved = false;
int networksFound = 0; // used in the portal
int datum = 0; //
Expand All @@ -170,8 +166,6 @@ int event = 0;
String toSend = "";

int value = 0;
//int pollCounter =0;
int aantal = 0;
int resetCounter=0;

// ******************************* log *************************************
Expand Down