Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

src/ConfigurationHandler/Controls/SetpointControl.cpp

Committer:
jmarkel44
Date:
2016-09-07
Revision:
19:9bc8fabeddfa
Parent:
14:cc916fa8dd11
Child:
20:653923c2f37a

File content as of revision 19:9bc8fabeddfa:

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

extern mDot *GLOBAL_mdot;

bool SetpointControl::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;
}