From b64d6ff04401ed85fce543b8e20c8c360fb284f5 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Thu, 27 Jun 2019 13:25:23 +0800
Subject: [PATCH] Update mqttd hal code, can control relay now

---
 mqttd/hal/hal.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/mqttd/hal/hal.c b/mqttd/hal/hal.c
index 5ed9248..44f4638 100644
--- a/mqttd/hal/hal.c
+++ b/mqttd/hal/hal.c
@@ -15,8 +15,10 @@
 
 int hal_init(void)
 {
+    wiringPiSetup();
+
     init_led(); 
-    relay_init();
+    init_relay();
 
 #if 0
     if( sht2x_init() < 0 )

--
Gitblit v1.9.1