From 386b2dc58cc8111e7e81134d20537335367a2cfc Mon Sep 17 00:00:00 2001
From: Eric Brombaugh <ebrombaugh1@cox.net>
Date: Sun, 7 May 2023 17:56:12 -0700
Subject: [PATCH] fixed powerup issue

---
 examples/i2c_oled/ssd1306_i2c.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/i2c_oled/ssd1306_i2c.h b/examples/i2c_oled/ssd1306_i2c.h
index c72e2e3..3ae7ce2 100644
--- a/examples/i2c_oled/ssd1306_i2c.h
+++ b/examples/i2c_oled/ssd1306_i2c.h
@@ -305,7 +305,7 @@ uint8_t ssd1306_pkt_send(uint8_t *data, uint8_t sz, uint8_t cmd)
 	if(cmd)
 	{
 		pkt[0] = 0;
-		pkt[1] = cmd;
+		pkt[1] = *data;
 	}
 	else
 	{
-- 
GitLab