Skip to content

Commit 1f3002b

Browse files
projectgusdpgeorge
authored andcommitted
wm8960: Add missing self reference for sample table.
Found by Ruff checking F821. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 2d16f21 commit 1f3002b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/drivers/codec/wm8960/wm8960.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def alc_mode(self, channel, mode=ALC_MODE):
683683
)
684684
self.regs[_ALC3] = (_ALC_MODE_MASK, mode << _ALC_MODE_SHIFT)
685685
try:
686-
rate = _alc_sample_rate_table[self.sample_rate]
686+
rate = self._alc_sample_rate_table[self.sample_rate]
687687
except:
688688
rate = 0
689689
self.regs[_ADDCTL3] = (_DACCTL3_ALCSR_MASK, rate)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy