Projector component needs a cmd_mcopy_identifier function to tell gui app that it's an arduino.

This commit is contained in:
mmcw-dev 2018-01-05 15:48:50 -05:00
parent b20c564bed
commit 324386096a
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,8 @@ void cmd (char val) {
debug();
} else if (val == cmd_connect) {
connect();
} else if (val == cmd_mcopy_identifier) {
identify();
} else if (val == cmd_projector) {
proj_start();
} else if (val == cmd_proj_forward) {
@ -60,6 +62,11 @@ void connect () {
log("connect()");
}
void identify () {
Serial.println(cmd_proj_identifier);
log("identify()");
}
void proj_start () {
if (proj_dir) {
digitalWrite(proj_fwd_pin, HIGH);