Bluetooth hc05 library

Dependents:   Nucleo_bt

Revision:
15:7db8c9913007
Parent:
14:1b81b957214a
Child:
16:8c5c8d0a1cfb
--- a/hc05.cpp	Sun Aug 26 10:53:14 2018 +0000
+++ b/hc05.cpp	Sun Aug 26 10:56:11 2018 +0000
@@ -888,7 +888,7 @@
 void bt_modul_hc05::init_slave(char *pin, char *name)
 {
     bt_modul_hc05::set_modul_role(SLAVE);
-    bt_modul_hc05::set_reset();
     bt_modul_hc05::set_modul_pincode(pin);
-    bt_modul_hc05::set_modul_name(name); 
+    bt_modul_hc05::set_modul_name(name);
+    bt_modul_hc05::set_reset(); 
 }
\ No newline at end of file