Improve logging in JKMM100 sketches.

This commit is contained in:
Matt McWilliams 2024-05-19 17:10:50 -04:00
parent 5bad15a79a
commit 4b8c8ee842
2 changed files with 9 additions and 2 deletions

View File

@ -127,6 +127,7 @@ void proj_start () {
}
void proj_stop () {
int ms;
//stop both directions
delay(2);
digitalWrite(PROJECTOR_FWD, LOW);
@ -151,11 +152,13 @@ void proj_stop () {
delay(100);
ms = millis() - proj_time;
mc.confirm(mc.PROJECTOR);
mc.log(String(ms) + "ms");
mc.log("projector()");
proj_running = false;
update_timing(millis() - proj_time);
update_timing(ms);
}

View File

@ -128,6 +128,7 @@ void proj2_start () {
}
void proj2_stop () {
int ms;
//stop both directions
delay(2);
digitalWrite(PROJECTOR_FWD, LOW);
@ -152,10 +153,13 @@ void proj2_stop () {
delay(100);
ms = millis() - proj_time;
mc.confirm(mc.PROJECTOR_SECOND);
mc.log(String(ms) + "ms");
mc.log("projector_second()");
proj_running = false;
update_timing(millis() - proj_time);
update_timing(ms);
}