Skip to content

Commit 2493023

Browse files
committed
use int division
1 parent 1b12ff5 commit 2493023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_avrprog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def _flash_page(
410410
self, page_buffer: bytearray, page_addr: int, page_size: int
411411
) -> None:
412412
page_addr //= 2 # address is by 'words' not bytes!
413-
for i in range(page_size / 2): # page indexed by words, not bytes
413+
for i in range(page_size // 2): # page indexed by words, not bytes
414414
lo_byte, hi_byte = page_buffer[2 * i : 2 * i + 2]
415415
self._flash_word(i, lo_byte, hi_byte)
416416

0 commit comments

Comments
 (0)