-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
good first issueGood for newcomersGood for newcomersrefactorCode reorganization and maintenanceCode reorganization and maintenance
Description
If, for whatever reason, fastPeriodic needs to be disabled, changing when/where the work is performed should be a very minor change.
Currently, fastPeriodic does work.
void fastPeriodic() {
// Do work...
}Instead, a separate function should do work, and fastPeriodic calls out to that function to perform work.
void fastPeriodic() {
doWork();
}
void doWork() {
// Do work...
}Then, if fastPeriodic is disabled, the work can be performed in periodic instead.
void periodic() {
doWork();
}
void doWork() {
// Do work...
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersrefactorCode reorganization and maintenanceCode reorganization and maintenance
Type
Projects
Status
Ideas