diff options
author | Vyacheslav Pedash <vyacheslav.pedash@globallogic.com> | 2022-07-12 14:32:38 +0300 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-09-23 12:36:04 -0500 |
commit | 30a330a75813bd7efb69de48e4149691565ce41f (patch) | |
tree | 0213a2e4e1c3de99504117c4f513560469b7fa20 /io-module | |
parent | aecbf5e33f1c91daae1a36fb46c005c4e9c694f2 (diff) | |
download | mts-io-30a330a75813bd7efb69de48e4149691565ce41f.tar.gz mts-io-30a330a75813bd7efb69de48e4149691565ce41f.tar.bz2 mts-io-30a330a75813bd7efb69de48e4149691565ce41f.zip |
Fix mtcpm LED attributes
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/machine/mtcpm.c | 10 | ||||
-rw-r--r-- | io-module/mts-io.c | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/io-module/machine/mtcpm.c b/io-module/machine/mtcpm.c index 245225c..66c8328 100644 --- a/io-module/machine/mtcpm.c +++ b/io-module/machine/mtcpm.c @@ -206,11 +206,11 @@ static struct attribute *mtcpm_platform_attributes[] = { &dev_attr_reset_monitor.attr, &dev_attr_reset_monitor_intervals.attr, - &dev_attr_led_status.attr, - &dev_attr_led_cd_gpio.attr, - &dev_attr_led_sig1_gpio.attr, - &dev_attr_led_sig2_gpio.attr, - &dev_attr_led_sig3_gpio.attr, + &dev_attr_led_status_mtcpm.attr, + &dev_attr_led_cd_mtcpm.attr, + &dev_attr_led_sig1_mtcpm.attr, + &dev_attr_led_sig2_mtcpm.attr, + &dev_attr_led_sig3_mtcpm.attr, &dev_attr_usbhub_reset.attr, &dev_attr_eth_reset.attr, diff --git a/io-module/mts-io.c b/io-module/mts-io.c index 1d244af..6cfc23a 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -1276,7 +1276,8 @@ mts_id_eeprom_load(void) attr_group = &mtcpm_platform_attribute_group; gpio_pins = gpio_pins_mtcpm; set_buttons(default_buttons); - log_info("detected board %s", hw_version_str); + mts_leds = mtcpmhs_leds; + log_info("detected board %s", hw_version_str); } else if (found_board(HW_VERSION_MT100EOCG_0_0,MT100EOCG_0_0,&hw_version_str,&mts_hw_version)) { attr_group = &mt100eocg_platform_attribute_group; gpio_pins = gpio_pins_mt100eocg_0_0; |