1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

Suppress compiler warnings.

This commit is contained in:
Neil McKechnie 2023-02-07 17:59:40 +00:00
parent aad0d28d1f
commit 5439dd3158
2 changed files with 4 additions and 2 deletions

View File

@ -100,7 +100,7 @@ protected:
// First clear the entire screen
oled->clearNative();
// Set first two lines on screen
LCD(0,F("DCC++ EX v%S"),F(VERSION));
LCD(1,F("Lic GPLv3"));
@ -115,6 +115,7 @@ protected:
// for I2C to complete.
/////////////////////////////////////////////////
DisplayInterface* loop2(bool force) override {
(void)force; // suppress compiler warning
// Loop through the buffer and if a row has changed
// (rowGeneration[row] is changed) then start writing the

View File

@ -98,7 +98,8 @@ private:
// Device-specific writeAnalogue function, invoked from IODevice::writeAnalogue().
//
void _writeAnalogue(VPIN vpin, int value, uint8_t profile, uint16_t duration) override {
void _writeAnalogue(VPIN vpin, int value, uint8_t param1, uint16_t param2) override {
(void)param1; (void)param2; // suppress compiler warning
#ifdef DIAG_IO
DIAG(F("PCA9685pwm WriteAnalogue Vpin:%d Value:%d Profile:%d Duration:%d %S"),
vpin, value, profile, duration, _deviceState == DEVSTATE_FAILED?F("DEVSTATE_FAILED"):F(""));