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
Diff: cmd/estadoFornecimento.cpp
- Revision:
- 22:b66e36356dd4
- Parent:
- 9:e501499af4ef
--- a/cmd/estadoFornecimento.cpp Tue Oct 13 21:22:27 2015 +0000
+++ b/cmd/estadoFornecimento.cpp Mon Oct 19 20:34:15 2015 +0000
@@ -5,12 +5,12 @@
#define COD_RESP_SEM_FORNECIMENTO 1
void cmdEstadoFornecimento(){
- char estado;
- if(getEstadoSensor(APP_PARAMETERS.LOAD_CHANNEL) == SENSOR_COM_FORNECIMENTO){
- estado = COD_RESP_COM_FORNECIMENTO;
+ char state;
+ if(getSensorState(APP_PARAMETERS.LOAD_CHANNEL) == SENSOR_COM_FORNECIMENTO){
+ state = COD_RESP_COM_FORNECIMENTO;
} else{
- estado = COD_RESP_SEM_FORNECIMENTO;
+ state = COD_RESP_SEM_FORNECIMENTO;
}
- exec.enviaResposta(RESP_ESTADO_FORNECIMENTO, estado);
+ exec.enviaResposta(RESP_ESTADO_FORNECIMENTO, state);
}
