From 930ed283a2c6e834d9d8e00d05455f9c56309026 Mon Sep 17 00:00:00 2001 From: potassium Date: Sun, 26 Jan 2025 06:07:51 +0300 Subject: [PATCH] i swear it should work --- fb/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fb/main.go b/fb/main.go index 7cd29d0..d0b3be8 100644 --- a/fb/main.go +++ b/fb/main.go @@ -9,7 +9,7 @@ import ( ) var ( - devfb *os.File + devfb *os.File Width, Height int ) @@ -30,7 +30,8 @@ func resolution() (w int, h int) { func init() { Width, Height = resolution() - devfb, err := os.OpenFile("/dev/fb", os.O_WRONLY, os.ModePerm) + var err error + devfb, err = os.OpenFile("/dev/fb", os.O_WRONLY, os.ModePerm) if err != nil { panic(err) }