Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hammacher <bmasterc@gmail.com>2021-08-23 18:00:25 +0300
committerChristian Hammacher <bmasterc@gmail.com>2021-08-23 18:00:25 +0300
commit59d8d5b76922cf2dc3ed20ba90034dc1a312070a (patch)
tree58b4f5e32d40fcefd2c374ae0c57243177606de9 /src/Accelerometers
parent0f9331e76c5c4ed1ce49394c5bd741a00c46f359 (diff)
Work towards v3.4-b3
M955 outputs the configuration only if requested Minor refactoring in the Linux interface files Bug fix: M918 didn't update the boards seq number Bug fix: RRF could leave "starting" mode too early
Diffstat (limited to 'src/Accelerometers')
-rw-r--r--src/Accelerometers/Accelerometers.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Accelerometers/Accelerometers.cpp b/src/Accelerometers/Accelerometers.cpp
index d6e4784d..668714d3 100644
--- a/src/Accelerometers/Accelerometers.cpp
+++ b/src/Accelerometers/Accelerometers.cpp
@@ -356,13 +356,16 @@ GCodeResult Accelerometers::ConfigureAccelerometer(GCodeBuffer& gb, const String
}
}
+ if (!seen)
+ {
# if SUPPORT_CAN_EXPANSION
- reply.printf("Accelerometer %u:%u type %s with orientation %u samples at %uHz with %u-bit resolution, SPI frequency %" PRIu32,
- CanInterface::GetCanAddress(), 0, accelerometer->GetTypeName(), orientation, samplingRate, resolution, accelerometer->GetFrequency());
+ reply.printf("Accelerometer %u:%u type %s with orientation %u samples at %uHz with %u-bit resolution, SPI frequency %" PRIu32,
+ CanInterface::GetCanAddress(), 0, accelerometer->GetTypeName(), orientation, samplingRate, resolution, accelerometer->GetFrequency());
# else
- reply.printf("Accelerometer %u type %s with orientation %u samples at %uHz with %u-bit resolution, SPI frequency %" PRIu32,
- 0, accelerometer->GetTypeName(), orientation, samplingRate, resolution, accelerometer->GetFrequency());
+ reply.printf("Accelerometer %u type %s with orientation %u samples at %uHz with %u-bit resolution, SPI frequency %" PRIu32,
+ 0, accelerometer->GetTypeName(), orientation, samplingRate, resolution, accelerometer->GetFrequency());
# endif
+ }
return GCodeResult::ok;
}