mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
use the USB_HXCFLOPPYEMULATOR_DEFAULT_PACKET_SIZE env variable to get the packet size.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libusbhxcfe/trunk@1997 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
@@ -422,7 +422,7 @@ int32_t ftdichiplistener(HXCFE* floppycontext,USBHXCFE * hw_context)
|
||||
hw_context->usbstats.dataout=0;
|
||||
hw_context->usbstats.synclost=0;
|
||||
if(!hw_context->usbstats.packetsize)
|
||||
hw_context->usbstats.packetsize=1664;
|
||||
hw_context->usbstats.packetsize = atoi(hxcfe_getEnvVar( floppycontext, "USB_HXCFLOPPYEMULATOR_DEFAULT_PACKET_SIZE", NULL ));
|
||||
hw_context->usbstats.totalpacketsent=0;
|
||||
hw_context->usbstats.packetsent=0;
|
||||
hw_context->usbstats.totaldataout=0;
|
||||
@@ -780,7 +780,7 @@ int32_t ftdichiplistener(HXCFE* floppycontext,USBHXCFE * hw_context)
|
||||
|
||||
srambuffer[15]=0xCC;
|
||||
srambuffer[16]=ctrl_byte;
|
||||
;
|
||||
|
||||
if(!checkalignement)
|
||||
srambuffer[8]=0x33; // synchro
|
||||
|
||||
|
||||
Reference in New Issue
Block a user