From 6fcb075c842477bc6dd927af8f6b0cd1c288e5c5 Mon Sep 17 00:00:00 2001 From: HaxSam Date: Fri, 8 Mar 2024 02:22:52 +0100 Subject: [PATCH] some minor changes to key name --- app/uart.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/uart.c b/app/uart.c index 2de4445..b9d4436 100644 --- a/app/uart.c +++ b/app/uart.c @@ -393,14 +393,14 @@ static bool expansion_get_rgb_info() { if(strcmp(response->key, "hardware_vgm_color_mode") == 0) color_mode = strtol(response->value, NULL, 10); - if(strcmp(response->key, "hardware_rgb_led_0") == 0) + if(strcmp(response->key, "hardware_screen_rgb_led0") == 0) led_rgb_0 = (uint32_t)strtol(response->value, NULL, 16); - if(strcmp(response->key, "hardware_rgb_led_1") == 0) + if(strcmp(response->key, "hardware_screen_rgb_led1") == 0) led_rgb_1 = (uint32_t)strtol(response->value, NULL, 16); - if(strcmp(response->key, "hardware_rgb_led_2") == 0) + if(strcmp(response->key, "hardware_screen_rgb_led2") == 0) led_rgb_2 = (uint32_t)strtol(response->value, NULL, 16); - if(strcmp(response->key, "hardware_vgm_color_fb") == 0) + if(strcmp(response->key, "hardware_vgm_color_fg") == 0) vgm_fg = strtol(response->value, NULL, 16); if(strcmp(response->key, "hardware_vgm_color_bg") == 0) vgm_bg = strtol(response->value, NULL, 16); @@ -410,6 +410,10 @@ static bool expansion_get_rgb_info() { if(rpc_message.has_next) break; switch(color_mode) { + case 0: + vgm_fg = 0xFC00; + vgm_bg = 0x0000; + break; case 2: vgm_fg = (uint16_t)((led_rgb_2 & 0xF80000) >> 8) + (uint16_t)((led_rgb_2 & 0x00FC00) >> 5) +