Skip to content

Commit 2494399

Browse files
committed
esp8266/scripts/flashbdev: Disable debug output/checks.
1 parent 46f0641 commit 2494399

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

esp8266/scripts/flashbdev.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ def __init__(self, blocks=NUM_BLK):
1010
self.blocks = blocks
1111

1212
def readblocks(self, n, buf):
13-
print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
13+
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
1414
esp.flash_read((n + self.START_SEC) * self.SEC_SIZE, buf)
1515

1616
def writeblocks(self, n, buf):
17-
print("writeblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
18-
assert len(buf) <= self.SEC_SIZE, len(buf)
17+
#print("writeblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
18+
#assert len(buf) <= self.SEC_SIZE, len(buf)
1919
esp.flash_erase(n + self.START_SEC)
2020
esp.flash_write((n + self.START_SEC) * self.SEC_SIZE, buf)
2121

2222
def ioctl(self, op, arg):
23-
print("ioctl(%d, %r)" % (op, arg))
23+
#print("ioctl(%d, %r)" % (op, arg))
2424
if op == 4: # BP_IOCTL_SEC_COUNT
2525
return self.blocks
2626
if op == 5: # BP_IOCTL_SEC_SIZE

0 commit comments

Comments
 (0)