aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/diskloader/src/DiskLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bootloaders/diskloader/src/DiskLoader.cpp')
-rw-r--r--bootloaders/diskloader/src/DiskLoader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootloaders/diskloader/src/DiskLoader.cpp b/bootloaders/diskloader/src/DiskLoader.cpp
index 30ac1b6..2792bc6 100644
--- a/bootloaders/diskloader/src/DiskLoader.cpp
+++ b/bootloaders/diskloader/src/DiskLoader.cpp
@@ -109,6 +109,9 @@ const u8 _consts[] =
void start_sketch()
{
+ if (pgm_read_word(0) == -1) // no sketch has been uploaded yet - stay in bootloader
+ return;
+
L_LED_OFF();
RX_LED_OFF();
TX_LED_OFF();