Skip to content

Commit 89e98cd

Browse files
author
jenkie
committed
Fix Bluetooth Setup for FC 2.0
1 parent c69242d commit 89e98cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Bluetooth_Setup/Bluetooth_Setup.ino

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ int btPin=13;
3737

3838
void setup()
3939
{
40+
#if HARDWARE_REV>=20
41+
pinMode(38,OUTPUT);
42+
digitalWrite(38, 1); // turn on whole system on
43+
delay(5000);
44+
#endif
4045
btSerial.begin(SerialSpeed);
4146
delay(1000);
4247
pinMode(btPin, OUTPUT);
@@ -55,6 +60,10 @@ void setup()
5560
digitalWrite(btPin,LOW);
5661
delay(10000);
5762
digitalWrite(btPin,HIGH);
63+
#if HARDWARE_REV>=20
64+
digitalWrite(38, 0); // turn on whole system off
65+
#endif
66+
5867
}
5968

6069
void loop()

0 commit comments

Comments
 (0)