summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugin.c b/plugin.c
index 65a59f8..97a8609 100644
--- a/plugin.c
+++ b/plugin.c
@@ -39,7 +39,7 @@
static const char * kPluginName = "graphlcd";
-static const char *VERSION = "1.0.4";
+static const char *VERSION = "1.0.5";
static const char *DESCRIPTION = trNOOP("Output to graphic LCD");
static const char *MAINMENUENTRY = NULL;
@@ -93,6 +93,7 @@ public:
virtual bool ProcessArgs(int argc, char * argv[]);
virtual bool Initialize();
virtual bool Start();
+ virtual void Stop(void);
virtual void Housekeeping();
virtual const char **SVDRPHelpPages(void);
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode);
@@ -120,8 +121,15 @@ cPluginGraphLCD::cPluginGraphLCD()
cPluginGraphLCD::~cPluginGraphLCD()
{
- for (unsigned int index = 0; index < GRAPHLCD_MAX_DISPLAYS; index++)
+}
+
+void cPluginGraphLCD::Stop(void)
+{
+ for (unsigned int index = 0; index < GRAPHLCD_MAX_DISPLAYS; index++) {
+ dsyslog("graphlcd plugin: DisconnectDisplay %d", index);
DisconnectDisplay(index);
+ };
+
mExtData->ReleaseExtData();
mExtData = NULL;
}