summaryrefslogtreecommitdiff
path: root/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'watch.c')
-rw-r--r--watch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/watch.c b/watch.c
index 9e04d81..f56c391 100644
--- a/watch.c
+++ b/watch.c
@@ -78,7 +78,6 @@ ciMonWatch::ciMonWatch()
ciMonWatch::~ciMonWatch()
{
- close();
if(chName) {
delete chName;
chName = NULL;
@@ -131,7 +130,7 @@ int ciMonWatch::open(const char* szDevice, eProtocol pro) {
return iRet;
}
-void ciMonWatch::close() {
+void ciMonWatch::shutdown(int nExitMode) {
if(Running()) {
m_bShutdown = true;
@@ -142,7 +141,7 @@ void ciMonWatch::close() {
if(this->isopen()) {
cTimer* t = Timers.GetNextActiveTimer();
- switch(theSetup.m_nOnExit) {
+ switch(nExitMode) {
case eOnExitMode_NEXTTIMER: {
isyslog("iMonLCD: closing, show only next timer.");
this->setLineLength(0,0,0,0);