Skip to content

Commit 6bd7a37

Browse files
authored
Merge pull request #9 from fourstix/b_fixes
Quick code fixes before updating build
2 parents 4c27446 + f5a2a9d commit 6bd7a37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/example1_basic_lightning_spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def reduce_noise(value):
5757
# warns that smartphone and smart watch displays, DC-DC converters, and/or
5858
# anything that operates in 500 kHz range are noise sources to be avoided.
5959
# The manufacturer's default value is 2 with a maximum value of 7.
60-
value =+ 1
60+
value += 1
6161

6262
if value > 7:
6363
print('Noise floor is at the maximum value.')

sparkfun_qwiicas3935.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def _read_register(self, register):
553553
raise ValueError("Register value must be in the range of 0x00 to 0x08")
554554

555555
with self._i2c as i2c:
556-
i2c.write(bytes([0x00]), stop=False)
556+
i2c.write(bytes([0x00]))
557557
# Write to the base address, then read all data registers in a
558558
# single block read. Then return the desired value from the list.
559559
# Successive individual byte reads, tend to fail. This trick
@@ -575,7 +575,7 @@ def _read_byte(self, register):
575575
# contains the lightning look-up tables and calibration registers.
576576
# The read_register is more efficent for more frequent data registers.
577577
with self._i2c as i2c:
578-
i2c.write(bytes([0x00]), stop=False)
578+
i2c.write(bytes([0x00]))
579579
# Write to the base address, then read all data registers in a
580580
# single block read. Then return the desired value from the list.
581581
# Successive individual byte reads, tend to fail. This trick

0 commit comments

Comments
 (0)