Suppress some compile warnings
This commit is contained in:
parent
176654791e
commit
9c0e05552e
|
@ -155,5 +155,4 @@ void eeprom_read_block(void* pos, const void* eeprom_address, size_t n) {
|
||||||
if (Wire.available()) *((uint8_t*)pos + c) = Wire.read();
|
if (Wire.available()) *((uint8_t*)pos + c) = Wire.read();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // I2C_EEPROM
|
||||||
#endif // ENABLED(I2C_EEPROM)
|
|
||||||
|
|
|
@ -359,7 +359,7 @@ void lcd_impl_status_screen_0() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (PAGE_CONTAINS(41, 48)) {
|
if (PAGE_CONTAINS(41, 48)) {
|
||||||
char buffer[10];
|
char buffer[13];
|
||||||
duration_t elapsed = print_job_timer.duration();
|
duration_t elapsed = print_job_timer.duration();
|
||||||
bool has_days = (elapsed.value >= 60*60*24L);
|
bool has_days = (elapsed.value >= 60*60*24L);
|
||||||
uint8_t len = elapsed.toDigital(buffer, has_days);
|
uint8_t len = elapsed.toDigital(buffer, has_days);
|
||||||
|
|
|
@ -151,7 +151,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (!GET_ARRAY_IS_DIGITAL(x)) {
|
if (!GET_ARRAY_IS_DIGITAL(x)) {
|
||||||
sprintf_P(buffer, PSTR("Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
|
sprintf_P(buffer, PSTR("Analog in = %5ld"), (long)analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
|
||||||
SERIAL_ECHO(buffer);
|
SERIAL_ECHO(buffer);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -213,7 +213,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (IS_ANALOG(pin)) {
|
if (IS_ANALOG(pin)) {
|
||||||
sprintf_P(buffer, PSTR(" Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
|
sprintf_P(buffer, PSTR(" Analog in = %5ld"), (long)analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
|
||||||
SERIAL_ECHO(buffer);
|
SERIAL_ECHO(buffer);
|
||||||
SERIAL_ECHOPGM(" ");
|
SERIAL_ECHOPGM(" ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue