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:
parent
1940eca56b
commit
2fb61be6ed
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user