diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-05-17 01:17:15 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-05-17 01:17:15 +0300 |
commit | d201085f565ed498d218ece1783a5c76bcfdb25d (patch) | |
tree | aaa7304ecb0c89c0fdb5e4930e7db7a5897d907e /GcodeProcessorLib | |
parent | f98db3c33c4199eb966c45c9ab2e914b3a689ae1 (diff) |
Add max_radius_mm and switch to polar coordinates for arc generation.
Diffstat (limited to 'GcodeProcessorLib')
-rw-r--r-- | GcodeProcessorLib/array_list.h | 2 | ||||
-rw-r--r-- | GcodeProcessorLib/logger.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/GcodeProcessorLib/array_list.h b/GcodeProcessorLib/array_list.h index a5ce323..94862f3 100644 --- a/GcodeProcessorLib/array_list.h +++ b/GcodeProcessorLib/array_list.h @@ -125,7 +125,7 @@ public: return items_[(front_index_ + index + max_size_) % max_size_]; } - int count() + int count() const { return count_; diff --git a/GcodeProcessorLib/logger.cpp b/GcodeProcessorLib/logger.cpp index 4af28d6..0118e52 100644 --- a/GcodeProcessorLib/logger.cpp +++ b/GcodeProcessorLib/logger.cpp @@ -24,7 +24,7 @@ logger::logger(std::vector<std::string> names, std::vector<int> levels) { // set to true by default, but can be changed by inheritance to support mandatory innitialization (for python or other integrations) loggers_created_ = true; - num_loggers_ = names.size(); + num_loggers_ = static_cast<int>(names.size()); logger_names_ = new std::string[static_cast<int>(num_loggers_)]; logger_levels_ = new int[static_cast<int>(num_loggers_)]; // this is slow due to the vectors, but it is trivial. Could switch to an iterator |