From 2c8fdb4d04cb1b421bbbf211047dd08576ce33ca Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 9 May 2024 16:21:01 +0200 Subject: [PATCH] ESP32: fix for crash when accessing tape --- ESP32/main.ino | 4 ++++ tm-11.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ESP32/main.ino b/ESP32/main.ino index f97ef9c..0e395dc 100644 --- a/ESP32/main.ino +++ b/ESP32/main.ino @@ -44,6 +44,7 @@ #include "kw11-l.h" #include "loaders.h" #include "memory.h" +#include "tm-11.h" #include "tty.h" #include "utils.h" #include "version.h" @@ -366,6 +367,9 @@ void setup() { tty_ = new tty(cnsl, b); b->add_tty(tty_); + Serial.println(F("* Adding TM-11")); + b->add_tm11(new tm_11(b)); + Serial.println(F("* Starting KW11-L")); b->getKW11_L()->begin(cnsl); diff --git a/tm-11.cpp b/tm-11.cpp index e41eb67..20eba66 100644 --- a/tm-11.cpp +++ b/tm-11.cpp @@ -1,4 +1,4 @@ -// (C) 2018-2023 by Folkert van Heusden +// (C) 2018-2024 by Folkert van Heusden // Released under MIT license #include