mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Clear up some compiler warnings
This commit is contained in:
parent
0139762a96
commit
9bf5d4331c
@ -138,7 +138,7 @@
|
|||||||
|
|
||||||
// Report if a warning was triggered
|
// Report if a warning was triggered
|
||||||
if (data.is_otpw && st.otpw_count == 0) {
|
if (data.is_otpw && st.otpw_count == 0) {
|
||||||
char timestamp[10];
|
char timestamp[14];
|
||||||
duration_t elapsed = print_job_timer.duration();
|
duration_t elapsed = print_job_timer.duration();
|
||||||
const bool has_days = (elapsed.value > 60*60*24L);
|
const bool has_days = (elapsed.value > 60*60*24L);
|
||||||
(void)elapsed.toDigital(timestamp, has_days);
|
(void)elapsed.toDigital(timestamp, has_days);
|
||||||
|
@ -544,8 +544,8 @@ void CardReader::checkautostart() {
|
|||||||
&& !jobRecoverFileExists() // Don't run auto#.g when a resume file exists
|
&& !jobRecoverFileExists() // Don't run auto#.g when a resume file exists
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
char autoname[10];
|
char autoname[8];
|
||||||
sprintf_P(autoname, PSTR("auto%i.g"), int(autostart_index));
|
sprintf_P(autoname, PSTR("auto%c.g"), autostart_index + '0');
|
||||||
dir_t p;
|
dir_t p;
|
||||||
root.rewind();
|
root.rewind();
|
||||||
while (root.readDir(&p, NULL) > 0) {
|
while (root.readDir(&p, NULL) > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user