Minor Refactor

Minor Refactor
This commit is contained in:
Theo Arends 2019-08-13 17:33:35 +02:00
parent e2040b70de
commit 09f8a7967e
3 changed files with 3 additions and 3 deletions

View File

@ -424,7 +424,7 @@ void SonoffBridgeLearn(uint8_t key)
* Commands * Commands
\*********************************************************************************************/ \*********************************************************************************************/
void CmndRfBridge() // RfSync, RfLow, RfHigh, RfHost and RfCode void CmndRfBridge(void) // RfSync, RfLow, RfHigh, RfHost and RfCode
{ {
char *p; char *p;
char stemp [10]; char stemp [10];

View File

@ -79,7 +79,7 @@ void BuzzerEnabledBeep(uint32_t count)
/*********************************************************************************************/ /*********************************************************************************************/
bool BuzzerPinState() bool BuzzerPinState(void)
{ {
if (XdrvMailbox.index == GPIO_BUZZER_INV) { if (XdrvMailbox.index == GPIO_BUZZER_INV) {
Buzzer.inverted = 1; Buzzer.inverted = 1;

View File

@ -82,7 +82,7 @@ void CounterUpdate4(void)
/********************************************************************************************/ /********************************************************************************************/
bool CounterPinState() bool CounterPinState(void)
{ {
if ((XdrvMailbox.index >= GPIO_CNTR1_NP) && (XdrvMailbox.index < (GPIO_CNTR1_NP + MAX_COUNTERS))) { if ((XdrvMailbox.index >= GPIO_CNTR1_NP) && (XdrvMailbox.index < (GPIO_CNTR1_NP + MAX_COUNTERS))) {
bitSet(counter_no_pullup, XdrvMailbox.index - GPIO_CNTR1_NP); bitSet(counter_no_pullup, XdrvMailbox.index - GPIO_CNTR1_NP);