We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22f1202 commit 2debecaCopy full SHA for 2debeca
1 file changed
internal_filesystem/lib/mpos/audio/audioflinger.py
@@ -375,6 +375,17 @@ def is_recording(self):
375
376
# ============================================================================
377
# Class method forwarding to singleton instance
378
+#
379
+# Instead of writing each function like this:
380
+# @classmethod
381
+# def has_microphone(cls):
382
+# instance = cls.get()
383
+# return instance._i2s_pins is not None and 'sd_in' in instance._i2s_pins
384
385
+# They can be written like this:
386
+# def has_microphone(self):
387
+# return self._i2s_pins is not None and 'sd_in' in self._i2s_pins
388
389
390
# Store original instance methods before replacing them
391
_original_methods = {}
0 commit comments