Fix max request size.
Some work towards making slave device code ready for an Arduino library.