Programm to control a huge setup of sous vide cookers. See https://stratum0.org/wiki/S0us-vide for more information on this project.

Dependencies:   mbed-rtos mbed

Fork of rtos_basic by mbed official

extensionIF.cpp

Committer:
chrissidach
Date:
2015-07-13
Revision:
7:22b5cbcece06

File content as of revision 7:22b5cbcece06:

#include "extensionIF.h"




EIF::EIF() {
    this->mutex.lock();
    for(uint8_t i = 0; i < EIF_maxExt; i++) {
        this->extensions[i].present = false;
        for(uint8_t j = 0; j < EIF_maxPods; j++) {
            this->extensions[i].pods[j].present = false;
            this->extensions[i].pods[j].powered = false;
            this->extensions[i].pods[j].sensorfail = false;
            this->extensions[i].pods[j].temp1 = 0;
            this->extensions[i].pods[j].temp2 = 0;
            this->extensions[i].pods[j].setpoint = 0;
            this->extensions[i].pods[j].heaterDC = 0;
        }
    } 

    this->mutex.unlock();
}