aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/nuevo_diskloader/src/DiskLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bootloaders/nuevo_diskloader/src/DiskLoader.cpp')
-rw-r--r--bootloaders/nuevo_diskloader/src/DiskLoader.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/bootloaders/nuevo_diskloader/src/DiskLoader.cpp b/bootloaders/nuevo_diskloader/src/DiskLoader.cpp
index efd386f..2c91367 100644
--- a/bootloaders/nuevo_diskloader/src/DiskLoader.cpp
+++ b/bootloaders/nuevo_diskloader/src/DiskLoader.cpp
@@ -68,9 +68,22 @@ int main()
for (;;)
{
- L_LED_ON();
- _delay_ms(250);
- L_LED_OFF();
- _delay_ms(250);
+// L_LED_ON();
+// _delay_ms(250);
+// L_LED_OFF();
+// _delay_ms(250);
+ u8* packet = _flashbuf;
+ u16 address = 0;
+ for (;;)
+ {
+// u8 cmd = getch();
+ if (Serial.available() > 0) {
+ u8 cmd = Serial.read();
+ if (cmd == '0')
+ L_LED_OFF();
+ if (cmd == '1')
+ L_LED_ON();
+ }
+ }
}
}