Fix compiler warning sketch/optiboot_w25x20cl.cpp: In function 'void optiboot_w25x20cl_enter()':
sketch/optiboot_w25x20cl.cpp:275:15: warning: variable 'desttype' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
660a4c0d75
commit
5ac98afeec
1 changed files with 2 additions and 3 deletions
|
@ -272,7 +272,6 @@ void optiboot_w25x20cl_enter()
|
||||||
/* Read memory block mode, length is big endian. */
|
/* Read memory block mode, length is big endian. */
|
||||||
else if(ch == STK_READ_PAGE) {
|
else if(ch == STK_READ_PAGE) {
|
||||||
uint32_t addr = (((uint32_t)rampz) << 16) | address;
|
uint32_t addr = (((uint32_t)rampz) << 16) | address;
|
||||||
uint8_t desttype;
|
|
||||||
register pagelen_t i;
|
register pagelen_t i;
|
||||||
// Read the page length, with the length transferred each nibble separately to work around
|
// Read the page length, with the length transferred each nibble separately to work around
|
||||||
// the Prusa's USB to serial infamous semicolon issue.
|
// the Prusa's USB to serial infamous semicolon issue.
|
||||||
|
@ -280,8 +279,8 @@ void optiboot_w25x20cl_enter()
|
||||||
length |= ((pagelen_t)getch()) << 8;
|
length |= ((pagelen_t)getch()) << 8;
|
||||||
length |= getch();
|
length |= getch();
|
||||||
length |= getch();
|
length |= getch();
|
||||||
// Read the destination type. It should always be 'F' as flash.
|
// Read the destination type. It should always be 'F' as flash. It is not checked.
|
||||||
desttype = getch();
|
(void)getch();
|
||||||
verifySpace();
|
verifySpace();
|
||||||
w25x20cl_wait_busy();
|
w25x20cl_wait_busy();
|
||||||
w25x20cl_rd_data(addr, buff, length);
|
w25x20cl_rd_data(addr, buff, length);
|
||||||
|
|
Loading…
Reference in a new issue