Skip to content

Commit

Permalink
Studio changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Jul 18, 2024
1 parent 6f796ce commit 2c812d4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/zmkfirmware/zmk-dev-arm:3.5
FROM docker.io/zmkfirmware/zmk-dev-arm:3.5-branch

COPY .bashrc tmp
RUN mv /tmp/.bashrc ~/.bashrc
5 changes: 0 additions & 5 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ target_sources(app PRIVATE src/behavior.c)
target_sources_ifdef(CONFIG_ZMK_KSCAN_SIDEBAND_BEHAVIORS app PRIVATE src/kscan_sideband_behaviors.c)
target_sources(app PRIVATE src/matrix_transform.c)
target_sources(app PRIVATE src/physical_layouts.c)
target_sources_ifdef(CONFIG_ZMK_MOUSE app PRIVATE src/mouse/key_listener.c)
target_sources_ifdef(CONFIG_ZMK_MOUSE app PRIVATE src/mouse/main.c)
target_sources_ifdef(CONFIG_ZMK_MOUSE app PRIVATE src/mouse/input_config.c)
target_sources(app PRIVATE src/sensors.c)
target_sources_ifdef(CONFIG_ZMK_WPM app PRIVATE src/wpm.c)
target_sources(app PRIVATE src/event_manager.c)
Expand Down Expand Up @@ -66,8 +63,6 @@ if ((NOT CONFIG_ZMK_SPLIT) OR CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON app PRIVATE src/behaviors/behavior_sensor_rotate_common.c)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_MOUSE_KEY_PRESS app PRIVATE src/behaviors/behavior_mouse_key_press.c)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_STUDIO_UNLOCK app PRIVATE src/behaviors/behavior_studio_unlock.c)
target_sources_ifdef(CONFIG_ZMK_MOUSE app PRIVATE src/behaviors/behavior_mouse_move.c)
target_sources_ifdef(CONFIG_ZMK_MOUSE app PRIVATE src/behaviors/behavior_mouse_scroll.c)
target_sources_ifdef(CONFIG_ZMK_BEHAVIOR_INPUT_TWO_AXIS app PRIVATE src/behaviors/behavior_input_two_axis.c)
target_sources(app PRIVATE src/combo.c)
target_sources(app PRIVATE src/behaviors/behavior_tap_dance.c)
Expand Down
6 changes: 1 addition & 5 deletions app/boards/arm/stp/stp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
zmk,backlight = &backlight;
zmk,matrix_transform = &default_transform;
zmk,battery = &vbatt;
zephyr,console = &cdc_acm_uart;
zmk,profileswitch = &profileswitch;
zmk,indicators = &led_strip;
};
Expand Down Expand Up @@ -124,11 +123,8 @@
status = "okay";
};

&usbd {
zephyr_udc0: &usbd {
status = "okay";
cdc_acm_uart: cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
};
};


Expand Down
8 changes: 4 additions & 4 deletions app/src/mouse/trackpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ static int trackpad_event_listener(const zmk_event_t *eh) {
return 0;
}

static ZMK_LISTENER(trackpad, trackpad_event_listener);
static ZMK_SUBSCRIPTION(trackpad, zmk_endpoint_changed);
static ZMK_SUBSCRIPTION(trackpad, zmk_usb_conn_state_changed);
static ZMK_SUBSCRIPTION(trackpad, zmk_ble_active_profile_changed);
ZMK_LISTENER(trackpad, trackpad_event_listener);
ZMK_SUBSCRIPTION(trackpad, zmk_endpoint_changed);
ZMK_SUBSCRIPTION(trackpad, zmk_usb_conn_state_changed);
ZMK_SUBSCRIPTION(trackpad, zmk_ble_active_profile_changed);

void zmk_trackpad_set_mode_report(uint8_t *report, struct zmk_endpoint_instance endpoint) {
int profile = zmk_endpoint_instance_to_index(endpoint);
Expand Down

0 comments on commit 2c812d4

Please sign in to comment.