You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
5.0 KiB

  1. --- a/src/bma250e/bma250e.cxx
  2. +++ b/src/bma250e/bma250e.cxx
  3. @@ -195,35 +195,35 @@ BMA250E::BMA250E(std::string initStr) :
  4. fifoConfig(mode, axes);
  5. }
  6. if(tok.substr(0, 20) == "setInterruptEnable0:") {
  7. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0);
  8. + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0);
  9. setInterruptEnable0(bits);
  10. }
  11. if(tok.substr(0, 20) == "setInterruptEnable1:") {
  12. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0);
  13. + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0);
  14. setInterruptEnable1(bits);
  15. }
  16. if(tok.substr(0, 20) == "setInterruptEnable2:") {
  17. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0);
  18. + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0);
  19. setInterruptEnable2(bits);
  20. }
  21. if(tok.substr(0, 17) == "setInterruptMap0:") {
  22. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0);
  23. + uint8_t bits = (uint8_t)std::stoul(tok.substr(17), nullptr, 0);
  24. setInterruptMap0(bits);
  25. }
  26. if(tok.substr(0, 17) == "setInterruptMap1:") {
  27. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0);
  28. + uint8_t bits = (uint8_t)std::stoul(tok.substr(17), nullptr, 0);
  29. setInterruptMap1(bits);
  30. }
  31. if(tok.substr(0, 17) == "setInterruptMap2:") {
  32. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0);
  33. + uint8_t bits = (uint8_t)std::stoul(tok.substr(17), nullptr, 0);
  34. setInterruptMap2(bits);
  35. }
  36. if(tok.substr(0, 16) == "setInterruptSrc:") {
  37. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(16), nullptr, 0);
  38. + uint8_t bits = (uint8_t)std::stoul(tok.substr(16), nullptr, 0);
  39. setInterruptSrc(bits);
  40. }
  41. if(tok.substr(0, 26) == "setInterruptOutputControl:") {
  42. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(26), nullptr, 0);
  43. + uint8_t bits = (uint8_t)std::stoul(tok.substr(26), nullptr, 0);
  44. setInterruptOutputControl(bits);
  45. }
  46. if(tok.substr(0, 26) == "setInterruptLatchBehavior:") {
  47. --- a/src/bmg160/bmg160.cxx
  48. +++ b/src/bmg160/bmg160.cxx
  49. @@ -173,23 +173,23 @@ BMG160::BMG160(std::string initStr) : mr
  50. fifoConfig(mode, axes);
  51. }
  52. if(tok.substr(0, 20) == "setInterruptEnable0:") {
  53. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0);
  54. + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0);
  55. setInterruptEnable0(bits);
  56. }
  57. if(tok.substr(0, 17) == "setInterruptMap0:") {
  58. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0);
  59. + uint8_t bits = (uint8_t)std::stoul(tok.substr(17), nullptr, 0);
  60. setInterruptMap0(bits);
  61. }
  62. if(tok.substr(0, 17) == "setInterruptMap1:") {
  63. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0);
  64. + uint8_t bits = (uint8_t)std::stoul(tok.substr(17), nullptr, 0);
  65. setInterruptMap1(bits);
  66. }
  67. if(tok.substr(0, 16) == "setInterruptSrc:") {
  68. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(16), nullptr, 0);
  69. + uint8_t bits = (uint8_t)std::stoul(tok.substr(16), nullptr, 0);
  70. setInterruptSrc(bits);
  71. }
  72. if(tok.substr(0, 26) == "setInterruptOutputControl:") {
  73. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(26), nullptr, 0);
  74. + uint8_t bits = (uint8_t)std::stoul(tok.substr(26), nullptr, 0);
  75. setInterruptOutputControl(bits);
  76. }
  77. if(tok.substr(0, 26) == "setInterruptLatchBehavior:") {
  78. --- a/src/bmm150/bmm150.cxx
  79. +++ b/src/bmm150/bmm150.cxx
  80. @@ -170,19 +170,19 @@ BMM150::BMM150(std::string initStr) : mr
  81. setOpmode(opmode);
  82. }
  83. if(tok.substr(0, 19) == "setInterruptEnable:") {
  84. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(19), nullptr, 0);
  85. + uint8_t bits = (uint8_t)std::stoul(tok.substr(19), nullptr, 0);
  86. setInterruptEnable(bits);
  87. }
  88. if(tok.substr(0, 19) == "setInterruptConfig:") {
  89. - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(19), nullptr, 0);
  90. + uint8_t bits = (uint8_t)std::stoul(tok.substr(19), nullptr, 0);
  91. setInterruptConfig(bits);
  92. }
  93. if(tok.substr(0, 17) == "setRepetitionsXY:") {
  94. - u_int8_t reps = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0);
  95. + uint8_t reps = (uint8_t)std::stoul(tok.substr(17), nullptr, 0);
  96. setRepetitionsXY(reps);
  97. }
  98. if(tok.substr(0, 16) == "setRepetitionsZ:") {
  99. - u_int8_t reps = (u_int8_t)std::stoul(tok.substr(16), nullptr, 0);
  100. + uint8_t reps = (uint8_t)std::stoul(tok.substr(16), nullptr, 0);
  101. setRepetitionsZ(reps);
  102. }
  103. if(tok.substr(0, 14) == "setPresetMode:") {