-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: in DataUpload, commented unused function & added docs #132
base: main
Are you sure you want to change the base?
Conversation
documented exitState, can_upload, initSuccess
lastConnectTime has no uses outside of this header file. Should I add a commit to remove lastConnectTime, or simply add documentation for it? |
documented initSuccess, and canUpload commented out exitState (unused function)
@@ -157,7 +157,10 @@ void DataUpload::exit(void) | |||
} | |||
} | |||
|
|||
// In smartfin-fw2/src/dataUpload::DataUpload::exitState(void), we return based on the water sensor state. If the system is in the water, we redeploy, otherwise we go to sleep. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either format as docstring and comment out, or remove documentation comment
int initSuccess; | ||
system_tick_t lastConnectTime; | ||
STATES_e exitState(void); | ||
//In smartfin-fw2/src/dataUpload::DataUpload::exitState(void), we return based on the water sensor state. If the system is in the water, we redeploy, otherwise we go to sleep. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either format as docstring and comment out, or remove documentation comment
* Returns that the data upload is possible if: the recorder has data, is connected to a cloud | ||
* service, is not in water, and the battery has enough voltage for an upload. If the system is currently in water, we redeploy, otherwise we go to sleep. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a table?
documented exitState, can_upload, initSuccess