Skip to content

Commit 2f12f83

Browse files
committed
set ranges
1 parent 44323ce commit 2f12f83

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

include/parameters/Parameter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,8 +1095,8 @@ class LDataParameter : public DataParameterBase<DataType> {
10951095
LDataParameter(const char *label, setter_func_def setter_func, getter_func_def getter_func, DataType minimumDataValue, DataType maximumDataValue)
10961096
: LDataParameter<DataType>(label, setter_func, getter_func)
10971097
{
1098-
this->minimumDataLimit = minimumDataValue;
1099-
this->maximumDataLimit = maximumDataValue;
1098+
this->minimumDataLimit = this->minimumDataRange = minimumDataValue;
1099+
this->maximumDataLimit = this->maximumDataRange = maximumDataValue;
11001100
}
11011101
LDataParameter(const char *label, float initial_value_normal, setter_func_def setter_func)
11021102
: LDataParameter<DataType>(label, setter_func) {

include/voltage_sources/PicoSDKADCVoltageSource.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// classes to handle the multipled ADC inputs on the Music Thing Workshop Computer module
2+
13
#pragma once
24

35
#ifdef ENABLE_CV_INPUT
@@ -75,7 +77,7 @@ class WorkshopVoltageSource : public WorkshopVoltageSourceBase {
7577

7678
digitalWrite(MX_A, bank & 1);
7779
digitalWrite(MX_B, bank & 2);
78-
80+
7981
// NB this seems to need 1us delay for pins to 'settle' before reading.
8082
sleep_us(1);
8183

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parameters",
3-
"version": "0.0.43",
3+
"version": "0.0.43.1",
44
"repository":
55
{
66
"type": "git",

0 commit comments

Comments
 (0)