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/cortar.cpp
- Revision:
- 9:e501499af4ef
- Parent:
- 8:e8d86c66283c
- Child:
- 22:b66e36356dd4
diff -r e8d86c66283c -r e501499af4ef cmd/cortar.cpp --- a/cmd/cortar.cpp Thu Jul 02 22:57:47 2015 +0000 +++ b/cmd/cortar.cpp Wed Jul 22 15:09:01 2015 +0000 @@ -12,7 +12,7 @@ reset_relay = RELE_OFF; atualizaEstadoRele(ESTADO_RELE_ABERTO); wait_ms(APP_PARAMETERS.DELAY_SENSOR_MS); - if(getEstadoSensor(0) == SENSOR_COM_FORNECIMENTO){ + if(getEstadoSensor(APP_PARAMETERS.LOAD_CHANNEL) == SENSOR_COM_FORNECIMENTO){ exec.enviaResposta(RESP_CORTAR, CORTAR_NAO_CONFIRMADO); } else{ exec.enviaResposta(RESP_CORTAR, CORTAR_SUCESSO);