Skip to content

Commit 7db027c

Browse files
committed
Turn off LED on startup
1 parent dc4d1c1 commit 7db027c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dongle/mt76.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ void MT76::initChip()
645645
throw MT76Exception("Failed to init registers");
646646
}
647647

648+
// Turn off LED
649+
if (!setLedMode(MT_LED_OFF))
650+
{
651+
throw MT76Exception("Failed to turn off LED");
652+
}
653+
648654
controlWrite(MT_MAC_SYS_CTRL, 0);
649655

650656
// Calibrate chip

dongle/mt76.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@
764764
// LED modes
765765
#define MT_LED_BLINK 0x00
766766
#define MT_LED_ON 0x01
767+
#define MT_LED_OFF 0x02
767768

768769
enum PhyType
769770
{

0 commit comments

Comments
 (0)