From 66050bb809b2e173dbcf5ae59f81ed127b193df0 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 9 Jan 2024 10:15:03 +0000 Subject: Migrate dynamic_keymap.layer_count < 4 where requried (#22091) Co-authored-by: Nick Brassel --- keyboards/fc980c/config.h | 4 ---- keyboards/fc980c/info.json | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'keyboards/fc980c') diff --git a/keyboards/fc980c/config.h b/keyboards/fc980c/config.h index 776b8ef35f..4937e9e801 100644 --- a/keyboards/fc980c/config.h +++ b/keyboards/fc980c/config.h @@ -17,10 +17,6 @@ along with this program. If not, see . #pragma once - -/* Maximum dynamic keymap layers (constrained by EEPROM space) */ -#define DYNAMIC_KEYMAP_LAYER_COUNT 3 - /* key matrix size */ #define MATRIX_ROWS 8 #define MATRIX_COLS 16 diff --git a/keyboards/fc980c/info.json b/keyboards/fc980c/info.json index 27a10b6f51..5060885c69 100644 --- a/keyboards/fc980c/info.json +++ b/keyboards/fc980c/info.json @@ -8,6 +8,9 @@ "pid": "0x980C", "device_version": "1.0.0" }, + "dynamic_keymap": { + "layer_count": 3 + }, "indicators": { "caps_lock": "B5", "num_lock": "B4", -- cgit v1.2.3 From a522b1f15627c69f94cbc814968be5a63519b8e3 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 16 Jan 2024 13:26:40 +1100 Subject: i2c: rename read/write register functions (#22905) --- keyboards/fc980c/ad5258.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keyboards/fc980c') diff --git a/keyboards/fc980c/ad5258.c b/keyboards/fc980c/ad5258.c index f7ff2f3dc1..9d33c10ce4 100644 --- a/keyboards/fc980c/ad5258.c +++ b/keyboards/fc980c/ad5258.c @@ -35,18 +35,18 @@ void ad5258_init(void) { uint8_t ad5258_read_rdac(void) { // read RDAC register uint8_t ret = 0; - i2c_readReg(AD5258_I2C_ADDRESS, AD5258_INST_RDAC, &ret, 1, 100); + i2c_read_register(AD5258_I2C_ADDRESS, AD5258_INST_RDAC, &ret, 1, 100); return ret; } uint8_t ad5258_read_eeprom(void) { uint8_t ret = 0; - i2c_readReg(AD5258_I2C_ADDRESS, AD5258_INST_EEPROM, &ret, 1, 100); + i2c_read_register(AD5258_I2C_ADDRESS, AD5258_INST_EEPROM, &ret, 1, 100); return ret; } void ad5258_write_rdac(uint8_t rdac) { // write RDAC register: uint8_t data = rdac & 0x3F; - i2c_writeReg(AD5258_I2C_ADDRESS, AD5258_INST_RDAC, &data, 1, 100); + i2c_write_register(AD5258_I2C_ADDRESS, AD5258_INST_RDAC, &data, 1, 100); } -- cgit v1.2.3