1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

compiler warning fixes and stupid cast for ESP toolchain

This commit is contained in:
Harald Barth 2022-10-20 00:53:05 +02:00
parent 56ed6ab6dc
commit f56a9a2c43
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ protected:
uint8_t pin = vpin - _firstVpin;
// Validate parameter.
volume = min(30,volume);
volume = min((uint8_t)30,volume);
if (pin == 0) {
// Play track

View File

@ -138,7 +138,7 @@ private:
//
void read_HCSR04device() {
// uint16 enough to time up to 65ms
uint16_t startTime, waitTime, currentTime, maxTime;
uint16_t startTime, waitTime = 0, currentTime, maxTime;
// If receive pin is still set on from previous call, abort the read.
if (ArduinoPins::fastReadDigital(_echoPin))