We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46f0641 commit 2494399Copy full SHA for 2494399
1 file changed
esp8266/scripts/flashbdev.py
@@ -10,17 +10,17 @@ def __init__(self, blocks=NUM_BLK):
10
self.blocks = blocks
11
12
def readblocks(self, n, buf):
13
- print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
+ #print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
14
esp.flash_read((n + self.START_SEC) * self.SEC_SIZE, buf)
15
16
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)
+ #print("writeblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
+ #assert len(buf) <= self.SEC_SIZE, len(buf)
19
esp.flash_erase(n + self.START_SEC)
20
esp.flash_write((n + self.START_SEC) * self.SEC_SIZE, buf)
21
22
def ioctl(self, op, arg):
23
- print("ioctl(%d, %r)" % (op, arg))
+ #print("ioctl(%d, %r)" % (op, arg))
24
if op == 4: # BP_IOCTL_SEC_COUNT
25
return self.blocks
26
if op == 5: # BP_IOCTL_SEC_SIZE
0 commit comments