Skip to content

Commit 589f217

Browse files
committed
Fix lint issues in main code file
1 parent addce9b commit 589f217

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

adafruit_max1704x.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
**Hardware:**
1818
19-
* `Adafruit MAX17048 Battery Fuel Gauge <https://www.adafruit.com/product/5580>`
19+
* `Adafruit MAX17048 Battery Fuel Gauge <https://www.adafruit.com/product/5580>`_
2020
2121
**Software and Dependencies:**
2222
@@ -207,14 +207,16 @@ def hibernation_threshold(self, threshold_percent):
207207

208208
def hibernate(self):
209209
"""Setup thresholds for hibernation to go into hibernation mode immediately.
210+
210211
See datasheet: HIBRT Register (0x0A) To disable hibernate mode, set HIBRT = 0x0000. To
211-
always use hibernate mode, set HIBRT = 0xFFFF. Can check status with `self.hibernating`"""
212+
always use hibernate mode, set HIBRT = 0xFFFF. Can check status with :py:attr:`hibernating`"""
212213
self._hibrt_hibthr = 0xFF
213214
self._hibrt_actthr = 0xFF
214215

215216
def wake(self):
216217
"""Setup thresholds for hibernation to leave hibernation mode immediately.
218+
217219
See datasheet: HIBRT Register (0x0A) To disable hibernate mode, set HIBRT = 0x0000. To
218-
always use hibernate mode, set HIBRT = 0xFFFF. Can check status with `self.hibernating`"""
220+
always use hibernate mode, set HIBRT = 0xFFFF. Can check status with :py:attr:`hibernating`"""
219221
self._hibrt_hibthr = 0
220222
self._hibrt_actthr = 0

0 commit comments

Comments
 (0)