Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
cmd/estadoFornecimento.cpp
- Committer:
- tpadovani
- Date:
- 2015-07-02
- Revision:
- 8:e8d86c66283c
- Parent:
- 5:1bc98277c257
- Child:
- 9:e501499af4ef
File content as of revision 8:e8d86c66283c:
#include "appCommands.h"
#include "sensor.h"
#define COD_RESP_COM_FORNECIMENTO 0
#define COD_RESP_SEM_FORNECIMENTO 1
void cmdEstadoFornecimento(){
char estado = 0;
if(getEstadoSensor(0) == SENSOR_COM_FORNECIMENTO){
estado = COD_RESP_COM_FORNECIMENTO;
} else{
estado = COD_RESP_SEM_FORNECIMENTO;
}
exec.enviaResposta(RESP_ESTADO_FORNECIMENTO, estado);
}
