Extract RESET_BUTTON_IS_PRESSED

This commit is contained in:
László Monda
2016-10-17 22:51:17 +02:00
parent ab3d8b92f0
commit 3bd2c7f18e
2 changed files with 3 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ static volatile usb_status_t UsbMouseAction(void)
UsbMouseReport.wheelX = 0;
UsbMouseReport.wheelY = 0;
if (!GPIO_ReadPinInput(RESET_BUTTON_GPIO, RESET_BUTTON_PIN)) {
if (RESET_BUTTON_IS_PRESSED) {
if (!(scrollCounter % 10)) {
UsbMouseReport.wheelX = -1;
}