From 1fa8b9d997f7743f1e4226776fc85331241e6319 Mon Sep 17 00:00:00 2001 From: Jens True Date: Wed, 3 Nov 2021 15:01:30 +0000 Subject: [PATCH] Cleanup --- lib/CommandHandler/CommandHandler.h | 4 ++++ src/main.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/CommandHandler/CommandHandler.h b/lib/CommandHandler/CommandHandler.h index d1b8047..35b5cb9 100644 --- a/lib/CommandHandler/CommandHandler.h +++ b/lib/CommandHandler/CommandHandler.h @@ -29,6 +29,10 @@ private: * Internal helper for printing debug strings */ void debugWrite(int x, int y, const char *text); + + /** + * Display instance + */ DisplayProxy *display; }; diff --git a/src/main.cpp b/src/main.cpp index ed061a7..1ca66f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,5 @@ /** - * \file main.cpp + * \file * Main application entry point. * Arduino Style but still a .cpp file */ @@ -10,7 +10,9 @@ #include "CommandHandler.h" #include "DisplayProxyMAX7456.h" +/// The display instance DisplayProxyMAX7456 display; +//The commandhandler needs a reference to the display instance CommandHandler cmd_handler(&display); /**