test fork
Dependencies: SPI_TFTx2 SPI_TFTx2_ILI9341 TFT_fonts TOUCH_TFTx2 mbed
Fork of CANary_9341 by
Diff: utility.cpp
- Revision:
- 154:90ea16ca7475
- Parent:
- 153:e94cfe3c339c
- Child:
- 155:f31006516956
--- a/utility.cpp Sat Oct 12 03:48:30 2013 +0000 +++ b/utility.cpp Wed Oct 16 03:47:48 2013 +0000 @@ -139,7 +139,7 @@ // We previously lost messages that did not get into the buffer sprintf(sTemp,"-- Lost %d Messages.\n", nLost); printMsg(sTemp); // write buffer overrun - //spkr.beep(500,0.25); + //if(enableSound) spkr.beep(500,0.25); nLost = 0 ; } @@ -170,7 +170,7 @@ if (writePointer==readPointer) { // Just caught up to read pointer printMsg("Write buffer overrun.\n"); // write buffer overrun - spkr.beep(500,0.25); + if(enableSound) spkr.beep(500,0.25); } } } @@ -1067,7 +1067,7 @@ if(chirpInt>0){ if(++counter>chirpInt){ - spkr.beep(1600,0.015); + if(enableSound) spkr.beep(1600,0.015); counter=0; } }else{