Address PR feedback

This commit is contained in:
Jeremy Soller
2020-09-23 13:32:46 -06:00
committed by Jeremy Soller
parent 00043ebfaf
commit 99ef48f9c4
5 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
#include <board/kbled.h>
#include <common/macro.h>

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
#ifndef _EC_SCRATCH_H
#define _EC_SCRATCH_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
#ifndef _EC_SCRATCH_H
#define _EC_SCRATCH_H

View File

@ -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) => {