From 789628df2e388c593fe82a195505996659d901f4 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Wed, 25 Mar 2026 15:00:08 +0800 Subject: [PATCH] hotfix: add USE_BOT flag to ASM24 USB --- tinygrad/runtime/support/usb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/runtime/support/usb.py b/tinygrad/runtime/support/usb.py index c74d2b73b5..b9de1b7e0e 100644 --- a/tinygrad/runtime/support/usb.py +++ b/tinygrad/runtime/support/usb.py @@ -170,7 +170,7 @@ class ScsiWriteOp: data:bytes; lba:int=0 # noqa: E702 class ASM24Controller: def __init__(self): - self.usb = USB3(0xADD1, 0x0001, 0x81, 0x83, 0x02, 0x04) + self.usb = USB3(0xADD1, 0x0001, 0x81, 0x83, 0x02, 0x04, use_bot=bool(getenv("USE_BOT", 0))) self._cache: dict[int, int|None] = {} self._pci_cacheable: list[tuple[int, int]] = [] self._pci_cache: dict[int, int|None] = {}