1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +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

@ -115,6 +115,7 @@ protected:
// for I2C to complete. // for I2C to complete.
///////////////////////////////////////////////// /////////////////////////////////////////////////
DisplayInterface* loop2(bool force) override { DisplayInterface* loop2(bool force) override {
(void)force; // suppress compiler warning
// Loop through the buffer and if a row has changed // Loop through the buffer and if a row has changed
// (rowGeneration[row] is changed) then start writing the // (rowGeneration[row] is changed) then start writing the

View File

@ -98,7 +98,8 @@ private:
// Device-specific writeAnalogue function, invoked from IODevice::writeAnalogue(). // 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 #ifdef DIAG_IO
DIAG(F("PCA9685pwm WriteAnalogue Vpin:%d Value:%d Profile:%d Duration:%d %S"), DIAG(F("PCA9685pwm WriteAnalogue Vpin:%d Value:%d Profile:%d Duration:%d %S"),
vpin, value, profile, duration, _deviceState == DEVSTATE_FAILED?F("DEVSTATE_FAILED"):F("")); vpin, value, profile, duration, _deviceState == DEVSTATE_FAILED?F("DEVSTATE_FAILED"):F(""));