1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Fixed bugs reported in #170

This commit is contained in:
Bogdan Marinescu 2022-12-31 20:26:45 +02:00
parent 1940eca56b
commit 2fb61be6ed
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ USBHKeyboardUsageToChar(unsigned long ulInstance,
//
// Handle the case where CAPS lock has been set.
//
if(pUSBHKeyboard->ucKeyModSticky &= HID_KEYB_CAPS_LOCK)
if(pUSBHKeyboard->ucKeyModSticky & HID_KEYB_CAPS_LOCK)
{
//
// See if this usage ID is modified by Caps Lock by checking the packed

View File

@ -465,7 +465,7 @@ FlagStatus FMI_GetWriteProtectionStatus(u32 FMI_Sector_Mask)
/* Write a read array command */
*(vu16 *)FMI_BANK_1 = 0xFF;
if (Protection_Level_1_Register &= FMI_Sector_Mask)
if (Protection_Level_1_Register & FMI_Sector_Mask)
{
return SET;
}