diff --git a/config.h b/config.h deleted file mode 100644 index 30eafeb..0000000 --- a/config.h +++ /dev/null @@ -1,4 +0,0 @@ -// (C) 2018-2023 by Folkert van Heusden -// Released under MIT license - -// #define TURBO diff --git a/debugger.cpp b/debugger.cpp index a03ea9d..ea1eef6 100644 --- a/debugger.cpp +++ b/debugger.cpp @@ -57,17 +57,14 @@ std::optional select_nbd_server(console *const cnsl) cnsl->flush_input(); std::string hostname = cnsl->read_line("Enter hostname (or empty to abort): "); - if (hostname.empty()) return { }; std::string port_str = cnsl->read_line("Enter port number (or empty to abort): "); - if (port_str.empty()) return { }; disk_backend *d = new disk_backend_nbd(hostname, atoi(port_str.c_str())); - if (d->begin(false) == false) { cnsl->put_string_lf("Cannot initialize NBD client"); delete d; diff --git a/gen.h b/gen.h index 291e32b..caeaa23 100644 --- a/gen.h +++ b/gen.h @@ -3,6 +3,8 @@ #pragma once +// #define TURBO + typedef enum { EVENT_NONE = 0, EVENT_HALT, EVENT_INTERRUPT, EVENT_TERMINATE } stop_event_t; typedef enum { DT_RK05, DT_RL02, DT_TAPE } disk_type_t; diff --git a/log.h b/log.h index 96adebd..055822d 100644 --- a/log.h +++ b/log.h @@ -5,7 +5,7 @@ #include -#include "config.h" +#include "gen.h" #if defined(ESP32) #include "FvHNTP/FvHNTP.h" #endif