From 7d98b5d410233fd9608ed5682f5a98b283f83d12 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Jan 2025 17:31:21 +0100 Subject: Diagnostics --- MIDI.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MIDI.h') diff --git a/MIDI.h b/MIDI.h index 5ce050e..0dbc4aa 100644 --- a/MIDI.h +++ b/MIDI.h @@ -69,6 +69,8 @@ public: if (npfd != 1) { std::cout << "Warning: " << std::to_string(npfd) << " poll fds for MIDI" << std::endl; + } else if (fd() <= 2) { + std::cout << "Warning: Bad MIDI fd: " << std::to_string(fd()) << std::endl; } } -- cgit v1.2.3