Skip to content

Commit 7b51d7e

Browse files
authored
Add API version assertion for split_data_sync module (qmk#26237)
1 parent 613d63a commit 7b51d7e

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright 2022 QMK
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7+
[0] = LAYOUT(KC_L, KC_R)
8+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"modules": [
3+
"qmk/split_data_sync"
4+
]
5+
}

modules/qmk/split_data_sync/split_data_sync.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#include "debug.h"
44
#include "timer.h"
55
#include "transactions.h"
6+
#include "community_modules.h"
7+
8+
ASSERT_COMMUNITY_MODULES_MIN_API_VERSION(1, 1, 2);
69

710
typedef struct _master_to_slave_t {
811
int m2s_data;

0 commit comments

Comments
 (0)