Skip to content

Instantly share code, notes, and snippets.

@mcrapet
mcrapet / k100-hack.patch
Created June 26, 2021 21:40
ckb-next-daemon K100 hack
diff --git a/src/daemon/bragi_common.c b/src/daemon/bragi_common.c
index 03d8edd..9b61a3a 100644
--- a/src/daemon/bragi_common.c
+++ b/src/daemon/bragi_common.c
@@ -4,8 +4,8 @@
// Gets a property using the bragi protocol
// Error when return value < 0
int bragi_get_property(usbdevice* kb, const uchar prop) {
- uchar pkt[64] = {BRAGI_MAGIC, BRAGI_GET, prop, 0};
- uchar response[64] = {0};