Skip to content

Commit 736ce4b

Browse files
committed
Updates SparkFun written source files to include MIT license header
1 parent da00235 commit 736ce4b

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

src/SparkFun_VL53L1X.cpp

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@
1313
Development environment specifics:
1414
Arduino IDE 1.8.1
1515
16-
This program is distributed in the hope that it will be useful,
17-
but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
GNU General Public License for more details.
16+
==== MIT License ====
17+
Copyright © 2022 SparkFun Electronics
2018
21-
You should have received a copy of the GNU General Public License
22-
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
20+
software and associated documentation files (the “Software”), to deal in the Software without restriction,
21+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
22+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
23+
24+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25+
26+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
28+
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30+
=====================
2331
*/
2432

2533
#include <stdlib.h>
@@ -404,4 +412,4 @@ bool SFEVL53L1X::getThresholdConfig(DetectionConfig *config)
404412
config->thresholdHigh = temp16;
405413

406414
return true;
407-
}
415+
}

src/SparkFun_VL53L1X.h

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@
1313
Development environment specifics:
1414
Arduino IDE 1.8.1
1515
16-
This program is distributed in the hope that it will be useful,
17-
but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
GNU General Public License for more details.
16+
==== MIT License ====
17+
Copyright © 2022 SparkFun Electronics
2018
21-
You should have received a copy of the GNU General Public License
22-
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
20+
software and associated documentation files (the “Software”), to deal in the Software without restriction,
21+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
22+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
23+
24+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25+
26+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
28+
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30+
=====================
2331
*/
2432

2533
#pragma once
@@ -134,4 +142,4 @@ class SFEVL53L1X
134142
int _interruptPin;
135143
int _i2cAddress = 0x52;
136144
VL53L1X* _device;
137-
};
145+
};

0 commit comments

Comments
 (0)