Address PR feedback
This commit is contained in:
committed by
Jeremy Soller
parent
00043ebfaf
commit
99ef48f9c4
@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# This script produces layout data for the System76 Keyboard Configurator
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
#include <board/kbled.h>
|
||||
#include <common/macro.h>
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
#ifndef _EC_SCRATCH_H
|
||||
#define _EC_SCRATCH_H
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
#ifndef _EC_SCRATCH_H
|
||||
#define _EC_SCRATCH_H
|
||||
|
||||
|
@ -397,7 +397,7 @@ fn main() {
|
||||
let output = parse_arg(&mut args, "output");
|
||||
let input = parse_arg(&mut args, "input");
|
||||
match args.next() {
|
||||
Some(value_str) => match u16::from_str_radix(&value_str, 16) {
|
||||
Some(value_str) => match u16::from_str_radix(value_str.trim_start_matches("0x"), 16) {
|
||||
Ok(value) => match unsafe { keymap_set(layer, output, input, value) } {
|
||||
Ok(()) => (),
|
||||
Err(err) => {
|
||||
|
Reference in New Issue
Block a user