Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

src/ConfigurationHandler/Controls/TimerControl.cpp

Committer:
jmarkel44
Date:
2016-09-08
Revision:
28:c410a61238bb
Parent:
19:9bc8fabeddfa
Child:
33:cb765aefa1b5
Child:
35:6235ef67faa1

File content as of revision 28:c410a61238bb:

/******************************************************************************
 *
 * File:                TimerControl.cpp
 * Desciption:          ICE Setpoint Control Class implementation 
 *
 *****************************************************************************/
#include "TimerControl.h"
#include "mDot.h"

extern mDot *GLOBAL_mdot;

bool TimerControl::load(string _controlFile){
    controlFile = _controlFile;
    
    // try to open the control file
    mDot::mdot_file file = GLOBAL_mdot->openUserFile(controlFile.c_str(), mDot::FM_RDONLY);
    if ( file.fd < 0 ) return false;
    
    return true;
}