ADD: added the "hf snoop" patch original from @Enio, rearranged by @Etmatrix.
ADD: added the "t55x7" refactoring by @marshmellow42
This commit is contained in:
@@ -53,7 +53,7 @@ static int l_SendCommand(lua_State *L){
|
||||
const char *data = luaL_checklstring(L, 1, &size);
|
||||
if(size != sizeof(UsbCommand))
|
||||
{
|
||||
printf("Got data size %d, expected %d" , size, sizeof(UsbCommand));
|
||||
printf("Got data size %d, expected %d" , (int) size,(int) sizeof(UsbCommand));
|
||||
lua_pushstring(L,"Wrong data size");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user