summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-h100-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-h100-remote.c')
-rw-r--r--firmware/drivers/lcd-h100-remote.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index 0592f60e00..e366906724 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -484,6 +484,11 @@ static void remote_lcd_init(void)
484 lcd_remote_set_invert_display(cached_invert); 484 lcd_remote_set_invert_display(cached_invert);
485} 485}
486 486
487bool remote_detect(void)
488{
489 return (GPIO_READ & 0x40000000)?false:true;
490}
491
487int remote_type(void) 492int remote_type(void)
488{ 493{
489 return _remote_type; 494 return _remote_type;
@@ -499,7 +504,7 @@ static void remote_tick(void)
499 int val; 504 int val;
500 int level; 505 int level;
501 506
502 current_status = ((GPIO_READ & 0x40000000) == 0); 507 current_status = remote_detect();
503 /* Only report when the status has changed */ 508 /* Only report when the status has changed */
504 if (current_status != last_status) 509 if (current_status != last_status)
505 { 510 {