Skip to content

Commit

Permalink
prevent set_display_type from changing controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kruzer committed May 24, 2021
1 parent b29330a commit 1d83779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion driver/openvfd_drv.c
Expand Up @@ -273,7 +273,8 @@ static int set_display_brightness(struct vfd_dev *dev, u_int8 new_brightness)

static void set_display_type(struct vfd_dev *dev, int new_display_type)
{
memcpy(&dev->dtb_active.display, &new_display_type, sizeof(struct vfd_display));
struct vfd_display *display=(struct vfd_display *) &new_display_type;
dev->dtb_active.display.type = display->type;
init_controller(dev);
}

Expand Down

0 comments on commit 1d83779

Please sign in to comment.