summaryrefslogtreecommitdiff
path: root/firmware/VirtualSerial.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/VirtualSerial.c')
-rw-r--r--firmware/VirtualSerial.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/VirtualSerial.c b/firmware/VirtualSerial.c
index 2fccda6..0fdc31c 100644
--- a/firmware/VirtualSerial.c
+++ b/firmware/VirtualSerial.c
@@ -171,6 +171,18 @@ void handle_command(const char *buf)
else
fputs("doorstatus: closed\n", &USBSerialStream);
}
+
+ else if (strcmp("on", buf) == 0)
+ {
+ PORTB |= 1 << PB4;
+ PORTB |= 1 << PB0;
+ }
+
+ else if (strcmp("off", buf) == 0)
+ {
+ PORTB &= ~(1 << PB4);
+ PORTB &= ~(1 << PB0);
+ }
}
void CheckACMStatus()
@@ -281,6 +293,7 @@ void EVENT_USB_Device_ControlRequest(void)
ISR(TIMER1_COMPA_vect)
{
+return;
if(PINB & (1 << PB5))
PORTB |= 1 << PB4;