Remove vusb 'reset to bootloader' hid message due to security implications (#7456)
This commit is contained in:
parent
3a7085dee4
commit
f0f161e572
2 changed files with 1 additions and 122 deletions
|
@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "debug.h"
|
||||
#include "host_driver.h"
|
||||
#include "vusb.h"
|
||||
#include "bootloader.h"
|
||||
#include <util/delay.h>
|
||||
|
||||
static uint8_t vusb_keyboard_leds = 0;
|
||||
|
@ -145,7 +144,7 @@ static void send_consumer(uint16_t data) {
|
|||
*------------------------------------------------------------------*/
|
||||
static struct {
|
||||
uint16_t len;
|
||||
enum { NONE, BOOTLOADER, SET_LED } kind;
|
||||
enum { NONE, SET_LED } kind;
|
||||
} last_req;
|
||||
|
||||
usbMsgLen_t usbFunctionSetup(uchar data[8]) {
|
||||
|
@ -173,11 +172,6 @@ usbMsgLen_t usbFunctionSetup(uchar data[8]) {
|
|||
debug("SET_LED: ");
|
||||
last_req.kind = SET_LED;
|
||||
last_req.len = rq->wLength.word;
|
||||
#ifdef BOOTLOADER_SIZE
|
||||
} else if (rq->wValue.word == 0x0301) {
|
||||
last_req.kind = BOOTLOADER;
|
||||
last_req.len = rq->wLength.word;
|
||||
#endif
|
||||
}
|
||||
return USB_NO_MSG; // to get data in usbFunctionWrite
|
||||
} else {
|
||||
|
@ -204,11 +198,6 @@ uchar usbFunctionWrite(uchar *data, uchar len) {
|
|||
last_req.len = 0;
|
||||
return 1;
|
||||
break;
|
||||
case BOOTLOADER:
|
||||
usbDeviceDisconnect();
|
||||
bootloader_jump();
|
||||
return 1;
|
||||
break;
|
||||
case NONE:
|
||||
default:
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue