Main Site Documentation

Ethernet Shield Brochure Typo


#1

I found two typos on the code in the Ethernet brochure:

http://www.tinyclr.com/downloads/Shield/Broch_EthernatShield.pdf

WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10,
(Cpu.Pin)FEZ_Pin.Digital.Di9),true);

there is extra ) after FEZ_Pin.Digital.Di9. It should be,

WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10,
(Cpu.Pin)FEZ_Pin.Digital.Di9, true);

and in the ProcessRequest() method,

int len = file.Length;

should be

 int len = buf.Length;

otherwise, the code work great! :wink:


#2

Thank you Sam, It is fix.