patch-spdrs60_srcpmessage_cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $OpenBSD: patch-spdrs60_srcpmessage_cpp,v 1.1 2017/05/25 00:14:40 espie Exp $
  2. Index: spdrs60/srcpmessage.cpp
  3. --- spdrs60/srcpmessage.cpp.orig
  4. +++ spdrs60/srcpmessage.cpp
  5. @@ -553,9 +553,9 @@ unsigned int GaMessage::getValue() const
  6. * INIT <bus> GL <addr> <prot> <protv> <maxsteps> <fcount>
  7. * 0 1 2 3 4 5 6 7
  8. */
  9. -GlMessage::GlMessage(Type type = mtGlInit, unsigned int abus = 1,
  10. - unsigned int addr = 1, Protocol prot = proDCC, unsigned int pv = 1,
  11. - unsigned int maxvs = 14, unsigned int fc = 1):
  12. +GlMessage::GlMessage(Type type, unsigned int abus,
  13. + unsigned int addr, Protocol prot, unsigned int pv,
  14. + unsigned int maxvs, unsigned int fc):
  15. SrcpMessage(type, abus), address(addr), protocol(prot),
  16. pversion(pv), maxvsteps(maxvs), fcount(fc), fmap(0)
  17. {
  18. @@ -566,7 +566,7 @@ GlMessage::GlMessage(Type type = mtGlInit, unsigned in
  19. * SET <bus> GL <addr> <drivemode> <currentv> <maxv> <f1> . . <fn>
  20. * 0 1 2 3 4 5 6 7
  21. */
  22. -GlMessage::GlMessage(Type type = mtGlInit, unsigned int abus = 1,
  23. +GlMessage::GlMessage(Type type, unsigned int abus = 1,
  24. unsigned int addr = 1, unsigned int fc = 1, unsigned int dm = 1,
  25. unsigned int cv = 0, unsigned int mv = 14,
  26. unsigned int map = 0):
  27. @@ -579,7 +579,7 @@ GlMessage::GlMessage(Type type = mtGlInit, unsigned in
  28. * SET <bus> GL <addr> <drivemode> <currentv> <maxv> <f1> . . <fn>
  29. * 0 1 2 3 4 5 6 7
  30. */
  31. -GlMessage::GlMessage(Type type = mtGlInit, unsigned int abus = 1,
  32. +GlMessage::GlMessage(Type type, unsigned int abus = 1,
  33. unsigned int addr = 1, unsigned int dm = 1,
  34. unsigned int cv = 0, unsigned int mv = 14, bool f0 = false):
  35. SrcpMessage(type, abus), address(addr), drivemode(dm),
  36. @@ -773,7 +773,7 @@ void GlMessage::setFunctionMap(unsigned int map = 0)
  37. * TERM <bus> GL <addr>
  38. * 0 1 2 3
  39. */
  40. -GlMessage::GlMessage(Type type = mtGlGet, unsigned int abus = 1,
  41. +GlMessage::GlMessage(Type type, unsigned int abus = 1,
  42. unsigned int addr = 1):
  43. SrcpMessage(type, abus), address(addr)
  44. {