From 8d5eef90b4b6b2adc6165c8346c5af5f346589e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20=C5=9Eiar=20Baysal?= Date: Thu, 7 Nov 2024 16:04:05 +0100 Subject: [PATCH] write IP address to LCD --- src/minidexed.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index e4e5387..b9fb752 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -1853,15 +1853,25 @@ void CMiniDexed::UpdateNetwork() { LOGNOTE ("RTP MIDI interface enabled"); } - m_pFTPDaemon = new CFTPDaemon(FTPUSERNAME, FTPPASSWORD); + + m_pFTPDaemon = new CFTPDaemon(FTPUSERNAME, FTPPASSWORD); + if (!m_pFTPDaemon->Initialize()) { LOGERR("Failed to init FTP daemon"); delete m_pFTPDaemon; m_pFTPDaemon = nullptr; } - else - LOGNOTE("FTP daemon initialized"); + else + { + LOGNOTE("FTP daemon initialized"); + } + + m_UI.DisplayWrite ("IP", + "Network", + IPString, + 0, + 1); } else if (m_bNetworkReady && !bNetIsRunning) {