Skip to content

Commit

Permalink
Turn off LED on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
medusalix committed May 23, 2020
1 parent dc4d1c1 commit 7db027c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dongle/mt76.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ void MT76::initChip()
throw MT76Exception("Failed to init registers");
}

// Turn off LED
if (!setLedMode(MT_LED_OFF))
{
throw MT76Exception("Failed to turn off LED");
}

controlWrite(MT_MAC_SYS_CTRL, 0);

// Calibrate chip
Expand Down
1 change: 1 addition & 0 deletions dongle/mt76.h
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@
// LED modes
#define MT_LED_BLINK 0x00
#define MT_LED_ON 0x01
#define MT_LED_OFF 0x02

enum PhyType
{
Expand Down

0 comments on commit 7db027c

Please sign in to comment.