68 Commits

Author SHA1 Message Date
Artur Kowalski
6b0891ed0a Add --force option
This option can be used to bypass board check when flashing EC firmware.
2023-02-14 15:42:28 +01:00
Tim Crawford
5780bb5e83 Update Rust toolchain to 2022-03-18
Match the toolchain used by Redox.

Update dependencies and submodules to fix building.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-04-04 18:59:20 -06:00
Ian Douglas Scott
ab0c55fae2 ectool 0.3.8 2021-11-19 13:32:00 -08:00
Ian Douglas Scott
85595a8d4c tool: Add a system76_ec command to disable input events
For testing Launch keyboards.

Could easily support in EC firmware as well if we had a use for that,
but not adding that for now.
2021-11-18 13:08:05 -08:00
Jeremy Soller
d9ce247a15 ectool: update lock file 2021-11-17 18:27:11 -07:00
Jeremy Soller
95632b4503 ectool: use linux-shared-hidraw feature for hidapi 2021-11-17 18:26:26 -07:00
Tim Crawford
43e5cf4ba3 Fix or silence clippy warnings on nightly
Fix:
- dead_code
- clippy::if_then_panic
- clippy::manual_memcpy
- clippy::needless_borrow

Silence:
- clippy::missing_safety_doc
- clippy::needless_range_loop
- clippy::single_match

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-10-26 11:35:48 -06:00
Tim Crawford
975377af42 Update Rust toolchain to 2021-06-15
Update toolchain to match the version used in Redox.

Update dependencies to fix build.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-10-26 11:35:48 -06:00
Ian Douglas Scott
55523d4083 ectool 0.3.6 2021-04-13 11:04:51 -06:00
Ian Douglas Scott
84d5c6b79d tool: Make Access require Send and 'static
This allows the Configurator to send a `Ec<Box<dyn Access>>` through a
channel to a background thread. This could be done differently, but
presumably there's no reason to have an `Access` implementation this
doesn't apply to.
2021-04-13 11:04:51 -06:00
Jeremy Soller
61428bd198 ectool 0.3.5 2021-03-16 10:33:46 -06:00
Jeremy Soller
0017450cbb Add LED_SAVE command 2021-03-16 10:33:46 -06:00
Jeremy Soller
91d128f0a0 ectool 0.3.4 2021-03-04 13:52:25 -07:00
Jeremy Soller
aab45bfcc1 Add layer parameter for LED_GET_MODE and LED_SET_MODE commands 2021-03-04 13:52:25 -07:00
Ian Douglas Scott
301eef6f21 tool: Fix and CI test with redox_hwio 2021-03-04 13:51:19 -07:00
Ian Douglas Scott
59df32814b tool: Don't depend on clap when without default features 2021-03-04 13:51:19 -07:00
Ian Douglas Scott
325762d4d8 tool: Fix building without std feature 2021-03-04 13:51:19 -07:00
Jeremy Soller
8825b906bd ectool 0.3.3 2021-03-01 11:51:08 -07:00
Jeremy Soller
f30a9d84f7 Fix unused variable warning 2021-03-01 11:50:31 -07:00
Jeremy Soller
2ef4cd7bbd Add matrix command 2021-03-01 11:50:31 -07:00
Ian Douglas Scott
4cd4df03e8 ectool 0.3.2 2021-02-26 12:18:02 -07:00
Ian Douglas Scott
b11bc64bba tool: API and CLI for LED matrix mode 2021-02-26 12:18:02 -07:00
Jeremy Soller
73a5d8b8a1 ectool 0.3.1: Implement read_debug for Box<dyn Access> 2021-02-23 09:45:55 -07:00
Tim Crawford
3e154d7f00 Add missing SPDX identifiers 2021-02-22 14:02:18 -07:00
Tim Crawford
9ef191edff tool: Update copyright year 2021-02-22 13:58:53 -07:00