소스 검색

Fixing first and last element bug for layers.

simple
Jacob Alexander 9 년 전
부모
커밋
ac98d86762
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      Macro/PartialMap/macro.c

+ 4
- 4
Macro/PartialMap/macro.c 파일 보기

@@ -323,8 +323,8 @@ nat_ptr_t *Macro_layerLookup( uint8_t scanCode )
// Determine if layer has key defined
// Make sure scanCode is between layer first and last scancodes
if ( map != 0
&& scanCode < layer->last
&& scanCode > layer->first
&& scanCode <= layer->last
&& scanCode >= layer->first
&& *map[ scanCode - layer->first ] != 0 )
{
return map[ scanCode - layer->first ];
@@ -340,8 +340,8 @@ nat_ptr_t *Macro_layerLookup( uint8_t scanCode )

// Make sure scanCode is between layer first and last scancodes
if ( map != 0
&& scanCode < layer->last
&& scanCode > layer->first
&& scanCode <= layer->last
&& scanCode >= layer->first
&& *map[ scanCode - layer->first ] != 0 )
{
return map[ scanCode - layer->first ];