aboutsummaryrefslogtreecommitdiffstats
path: root/source/device_formula.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-05-17 11:42:14 -0800
committerClyne Sullivan <clyne@bitgloo.com>2022-05-17 11:42:14 -0800
commit29636cfebf58094d61b669d99c08a4f76dc98a8c (patch)
treea8d8c4399ab01e78284db38797175167b46a6afc /source/device_formula.cpp
parent67ffe1f2ce9f3432cb524dced5e6fba96519b4fd (diff)
fix serial timeout to prevent incomplete IO
Diffstat (limited to 'source/device_formula.cpp')
-rw-r--r--source/device_formula.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/device_formula.cpp b/source/device_formula.cpp
index a70f465..9a3372f 100644
--- a/source/device_formula.cpp
+++ b/source/device_formula.cpp
@@ -10,9 +10,20 @@
* If not, see <https://www.gnu.org/licenses/>.
*/
-#include "stmdsp.hpp"
+#define exprtk_disable_comments
+#define exprtk_disable_break_continue
+#define exprtk_disable_sc_andor
+#define exprtk_disable_return_statement
+#define exprtk_disable_enhanced_features
+//#define exprtk_disable_string_capabilities
+#define exprtk_disable_superscalar_unroll
+#define exprtk_disable_rtl_io_file
+#define exprtk_disable_rtl_vecops
+//#define exprtk_disable_caseinsensitivity
#include "exprtk.hpp"
+#include "stmdsp.hpp"
+
#include <algorithm>
#include <random>
#include <string_view>