From dd9d789e9a56c99b2fa6b6217d72ab4904c73ecf Mon Sep 17 00:00:00 2001 From: David Lechner Date: Fri, 22 May 2020 17:52:52 -0500 Subject: [PATCH] license --- LICENSE | 21 +++++++++++++++++++++ src/actions/ble.ts | 3 +++ src/actions/bootloader.ts | 3 +++ src/actions/editor.ts | 3 +++ src/actions/hub.ts | 3 +++ src/actions/mpy.ts | 3 +++ src/actions/notification.ts | 3 +++ src/actions/terminal.ts | 3 +++ src/components/ActionButton.tsx | 3 +++ src/components/App.tsx | 3 +++ src/components/BluetoothButton.tsx | 3 +++ src/components/Editor.tsx | 3 +++ src/components/FlashButton.tsx | 3 +++ src/components/LoadButton.tsx | 3 +++ src/components/Notification.tsx | 3 +++ src/components/NotificationStack.tsx | 3 +++ src/components/OpenFileButton.tsx | 3 +++ src/components/ReplButton.tsx | 3 +++ src/components/RunButton.tsx | 3 +++ src/components/SaveButton.tsx | 3 +++ src/components/StatusBar.tsx | 3 +++ src/components/StopButton.tsx | 3 +++ src/components/Terminal.tsx | 3 +++ src/components/Toolbar.tsx | 3 +++ src/epics/ble.ts | 3 +++ src/epics/hub.ts | 3 +++ src/epics/index.ts | 3 +++ src/epics/terminal.ts | 3 +++ src/index.scss | 3 +++ src/index.tsx | 3 +++ src/protocols/bootloader.ts | 3 +++ src/reducers/ble.ts | 3 +++ src/reducers/bootloader.ts | 3 +++ src/reducers/editor.ts | 3 +++ src/reducers/hub.ts | 3 +++ src/reducers/index.ts | 3 +++ src/reducers/notification.ts | 3 +++ src/reducers/status.ts | 3 +++ src/sagas/bootloader.test.ts | 3 +++ src/sagas/bootloader.ts | 3 +++ src/sagas/index.ts | 3 +++ src/services/bootloader.ts | 3 +++ src/services/editor.ts | 3 +++ src/services/index.ts | 3 +++ src/utils/index.ts | 3 +++ src/utils/iter.test.ts | 3 +++ src/utils/iter.ts | 3 +++ src/utils/math.test.ts | 3 +++ src/utils/math.ts | 3 +++ src/utils/web-bluetooth.test.ts | 3 +++ src/utils/web-bluetooth.ts | 3 +++ 51 files changed, 171 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..3e0b328e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 The Pybricks Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, 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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/actions/ble.ts b/src/actions/ble.ts index 194b536e..80c3eb65 100644 --- a/src/actions/ble.ts +++ b/src/actions/ble.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action } from 'redux'; import { ThunkAction } from 'redux-thunk'; import { diff --git a/src/actions/bootloader.ts b/src/actions/bootloader.ts index cfda654e..4b222d3b 100644 --- a/src/actions/bootloader.ts +++ b/src/actions/bootloader.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action } from 'redux'; import { Command, HubType, ProtectionLevel, Result } from '../protocols/bootloader'; import { createCountFunc } from '../utils/iter'; diff --git a/src/actions/editor.ts b/src/actions/editor.ts index b1863256..bd9377d2 100644 --- a/src/actions/editor.ts +++ b/src/actions/editor.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Ace } from 'ace-builds'; import { Action } from 'redux'; diff --git a/src/actions/hub.ts b/src/actions/hub.ts index 666a868d..49b28713 100644 --- a/src/actions/hub.ts +++ b/src/actions/hub.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action } from 'redux'; import { ThunkAction } from 'redux-thunk'; import { getChecksum } from '../epics/hub'; diff --git a/src/actions/mpy.ts b/src/actions/mpy.ts index 2bbbc6ce..6fb4305e 100644 --- a/src/actions/mpy.ts +++ b/src/actions/mpy.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { compile as mpyCrossCompile } from '@pybricks/mpy-cross-4'; import { Action } from 'redux'; import { ThunkAction } from 'redux-thunk'; diff --git a/src/actions/notification.ts b/src/actions/notification.ts index 5369f3af..b41b019d 100644 --- a/src/actions/notification.ts +++ b/src/actions/notification.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action } from 'redux'; import { createCountFunc } from '../utils/iter'; diff --git a/src/actions/terminal.ts b/src/actions/terminal.ts index b4aba957..60f450ee 100644 --- a/src/actions/terminal.ts +++ b/src/actions/terminal.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action } from 'redux'; export enum TerminalDataActionType { diff --git a/src/components/ActionButton.tsx b/src/components/ActionButton.tsx index ffed3e15..c0ad80ae 100644 --- a/src/components/ActionButton.tsx +++ b/src/components/ActionButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import Button from 'react-bootstrap/Button'; import Image from 'react-bootstrap/Image'; diff --git a/src/components/App.tsx b/src/components/App.tsx index 032175d6..b873b62e 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import { Col, Row } from 'react-bootstrap'; import Container from 'react-bootstrap/Container'; diff --git a/src/components/BluetoothButton.tsx b/src/components/BluetoothButton.tsx index 13c81c63..765023c3 100644 --- a/src/components/BluetoothButton.tsx +++ b/src/components/BluetoothButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { connect } from 'react-redux'; import { AnyAction } from 'redux'; import { ThunkDispatch } from 'redux-thunk'; diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 74013202..2de32c4b 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React, { ReactElement } from 'react'; import AceEditor from 'react-ace'; import { ReactReduxContext } from 'react-redux'; diff --git a/src/components/FlashButton.tsx b/src/components/FlashButton.tsx index 04f10166..d983000a 100644 --- a/src/components/FlashButton.tsx +++ b/src/components/FlashButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import { flashFirmware } from '../actions/bootloader'; diff --git a/src/components/LoadButton.tsx b/src/components/LoadButton.tsx index 7672c331..59f087d5 100644 --- a/src/components/LoadButton.tsx +++ b/src/components/LoadButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import * as editor from '../actions/editor'; diff --git a/src/components/Notification.tsx b/src/components/Notification.tsx index 3d2189e9..342cd3e7 100644 --- a/src/components/Notification.tsx +++ b/src/components/Notification.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import Toast from 'react-bootstrap/Toast'; import { connect } from 'react-redux'; diff --git a/src/components/NotificationStack.tsx b/src/components/NotificationStack.tsx index ae3d5326..852b4947 100644 --- a/src/components/NotificationStack.tsx +++ b/src/components/NotificationStack.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import { Collapse } from 'react-bootstrap'; import { connect } from 'react-redux'; diff --git a/src/components/OpenFileButton.tsx b/src/components/OpenFileButton.tsx index 34f6e892..04dc966f 100644 --- a/src/components/OpenFileButton.tsx +++ b/src/components/OpenFileButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import Button from 'react-bootstrap/Button'; import Image from 'react-bootstrap/Image'; diff --git a/src/components/ReplButton.tsx b/src/components/ReplButton.tsx index 263d3580..9980b9c4 100644 --- a/src/components/ReplButton.tsx +++ b/src/components/ReplButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { connect } from 'react-redux'; import { AnyAction } from 'redux'; import { ThunkDispatch } from 'redux-thunk'; diff --git a/src/components/RunButton.tsx b/src/components/RunButton.tsx index 3be4f853..20524e6b 100644 --- a/src/components/RunButton.tsx +++ b/src/components/RunButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Ace } from 'ace-builds'; import { connect } from 'react-redux'; import { AnyAction } from 'redux'; diff --git a/src/components/SaveButton.tsx b/src/components/SaveButton.tsx index 9bc26601..022a41f4 100644 --- a/src/components/SaveButton.tsx +++ b/src/components/SaveButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import * as editor from '../actions/editor'; diff --git a/src/components/StatusBar.tsx b/src/components/StatusBar.tsx index 5e2dcf03..4e9c43d0 100644 --- a/src/components/StatusBar.tsx +++ b/src/components/StatusBar.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import ProgressBar from 'react-bootstrap/ProgressBar'; import { connect } from 'react-redux'; diff --git a/src/components/StopButton.tsx b/src/components/StopButton.tsx index 328b5c4c..4fb5867e 100644 --- a/src/components/StopButton.tsx +++ b/src/components/StopButton.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { connect } from 'react-redux'; import { AnyAction } from 'redux'; import { ThunkDispatch } from 'redux-thunk'; diff --git a/src/components/Terminal.tsx b/src/components/Terminal.tsx index 23eab99b..6505657b 100644 --- a/src/components/Terminal.tsx +++ b/src/components/Terminal.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import { connect } from 'react-redux'; import ResizeObserver from 'react-resize-observer'; diff --git a/src/components/Toolbar.tsx b/src/components/Toolbar.tsx index c0907887..d701b438 100644 --- a/src/components/Toolbar.tsx +++ b/src/components/Toolbar.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import ButtonGroup from 'react-bootstrap/ButtonGroup'; import ButtonToolbar from 'react-bootstrap/ButtonToolbar'; diff --git a/src/epics/ble.ts b/src/epics/ble.ts index d7ea2bf9..05c2f6b5 100644 --- a/src/epics/ble.ts +++ b/src/epics/ble.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { AnyAction } from 'redux'; import { Epic, combineEpics, ofType } from 'redux-observable'; import { map } from 'rxjs/operators'; diff --git a/src/epics/hub.ts b/src/epics/hub.ts index 074df755..acb492c7 100644 --- a/src/epics/hub.ts +++ b/src/epics/hub.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { AnyAction } from 'redux'; import { Epic, combineEpics, ofType } from 'redux-observable'; import { Subject } from 'rxjs'; diff --git a/src/epics/index.ts b/src/epics/index.ts index c0a9241d..5e1b04b4 100644 --- a/src/epics/index.ts +++ b/src/epics/index.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Epic, combineEpics } from 'redux-observable'; import { catchError } from 'rxjs/operators'; import ble from './ble'; diff --git a/src/epics/terminal.ts b/src/epics/terminal.ts index 9bb3cd2a..d5b6d4d7 100644 --- a/src/epics/terminal.ts +++ b/src/epics/terminal.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { AnyAction } from 'redux'; import { Epic, combineEpics, ofType } from 'redux-observable'; import { Subject } from 'rxjs'; diff --git a/src/index.scss b/src/index.scss index 21ac2d92..b2bbd198 100644 --- a/src/index.scss +++ b/src/index.scss @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + // Override default variables before the import $body-bg: #0088ce; diff --git a/src/index.tsx b/src/index.tsx index 658e335d..3c425745 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; diff --git a/src/protocols/bootloader.ts b/src/protocols/bootloader.ts index 054da259..b9e8f37c 100644 --- a/src/protocols/bootloader.ts +++ b/src/protocols/bootloader.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + // Ref: https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#lego-hub-boot-loader-service import { assert } from '../utils'; diff --git a/src/reducers/ble.ts b/src/reducers/ble.ts index 4a1663cc..1b7cc67d 100644 --- a/src/reducers/ble.ts +++ b/src/reducers/ble.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Reducer, combineReducers } from 'redux'; import { BLEConnectActionType } from '../actions/ble'; diff --git a/src/reducers/bootloader.ts b/src/reducers/bootloader.ts index 94283f86..63abc335 100644 --- a/src/reducers/bootloader.ts +++ b/src/reducers/bootloader.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Reducer, combineReducers } from 'redux'; import { BootloaderConnectionActionType, diff --git a/src/reducers/editor.ts b/src/reducers/editor.ts index 64dd2cd3..12cb77d0 100644 --- a/src/reducers/editor.ts +++ b/src/reducers/editor.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Ace } from 'ace-builds'; import { Reducer, combineReducers } from 'redux'; import { CurrentEditorAction, EditorActionType } from '../actions/editor'; diff --git a/src/reducers/hub.ts b/src/reducers/hub.ts index 30c87046..95fc0221 100644 --- a/src/reducers/hub.ts +++ b/src/reducers/hub.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Reducer, combineReducers } from 'redux'; import { HubActionType, diff --git a/src/reducers/index.ts b/src/reducers/index.ts index 5183237b..08777cd7 100644 --- a/src/reducers/index.ts +++ b/src/reducers/index.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { combineReducers } from 'redux'; import ble, { BLEState } from './ble'; import bootloader, { BootloaderState } from './bootloader'; diff --git a/src/reducers/notification.ts b/src/reducers/notification.ts index e88095d3..93dbaf06 100644 --- a/src/reducers/notification.ts +++ b/src/reducers/notification.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Reducer } from 'react'; import { combineReducers } from 'redux'; import { NotificationAction, NotificationActionType } from '../actions/notification'; diff --git a/src/reducers/status.ts b/src/reducers/status.ts index efe8cc1f..63f55a5e 100644 --- a/src/reducers/status.ts +++ b/src/reducers/status.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Reducer } from 'react'; import { combineReducers } from 'redux'; import { BootloaderAction, BootloaderActionType } from '../actions/bootloader'; diff --git a/src/sagas/bootloader.test.ts b/src/sagas/bootloader.test.ts index 9bc982f5..e67840b0 100644 --- a/src/sagas/bootloader.test.ts +++ b/src/sagas/bootloader.test.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action } from 'redux'; import { runSaga, stdChannel } from 'redux-saga'; import { diff --git a/src/sagas/bootloader.ts b/src/sagas/bootloader.ts index d8b46a6d..23a14eaa 100644 --- a/src/sagas/bootloader.ts +++ b/src/sagas/bootloader.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import JSZip from 'jszip'; import { Action } from 'redux'; import { Channel, buffers } from 'redux-saga'; diff --git a/src/sagas/index.ts b/src/sagas/index.ts index eed2b2ee..e8cd0942 100644 --- a/src/sagas/index.ts +++ b/src/sagas/index.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { all } from 'redux-saga/effects'; import bootloader from './bootloader'; diff --git a/src/services/bootloader.ts b/src/services/bootloader.ts index c5974369..37899a9f 100644 --- a/src/services/bootloader.ts +++ b/src/services/bootloader.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action, Dispatch } from 'redux'; import { BootloaderConnectionActionType, diff --git a/src/services/editor.ts b/src/services/editor.ts index 0bf44a03..f55b9e04 100644 --- a/src/services/editor.ts +++ b/src/services/editor.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import * as FileSaver from 'file-saver'; import { Action, Dispatch } from 'redux'; import { EditorActionType, EditorOpenAction } from '../actions/editor'; diff --git a/src/services/index.ts b/src/services/index.ts index 75a7b7f2..14546cda 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { Action, Dispatch, Middleware } from 'redux'; import { RootState } from '../reducers'; import bootloader from './bootloader'; diff --git a/src/utils/index.ts b/src/utils/index.ts index 7d4a0505..ce6f40ab 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + /** * Asserts that an assumption is true. This is used to detect programmer errors * and should never actually throw in a correctly written program. diff --git a/src/utils/iter.test.ts b/src/utils/iter.test.ts index 47430c72..1ea35225 100644 --- a/src/utils/iter.test.ts +++ b/src/utils/iter.test.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { count, createCountFunc } from './iter'; test('count', () => { diff --git a/src/utils/iter.ts b/src/utils/iter.ts index e188af0c..b213cf9d 100644 --- a/src/utils/iter.ts +++ b/src/utils/iter.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + /** * Creates an iterator that counts infinitely (to Number.MAX_SAFE_INTEGER really) * starting from 0. diff --git a/src/utils/math.test.ts b/src/utils/math.test.ts index bafd1297..2e870f38 100644 --- a/src/utils/math.test.ts +++ b/src/utils/math.test.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { fmod, sumComplement32 } from './math'; describe('fmod', () => { diff --git a/src/utils/math.ts b/src/utils/math.ts index 85d1b13a..63e9f7bc 100644 --- a/src/utils/math.ts +++ b/src/utils/math.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + /** * Compute modulo using floored division * @param a first operand diff --git a/src/utils/web-bluetooth.test.ts b/src/utils/web-bluetooth.test.ts index 62921123..88fa8740 100644 --- a/src/utils/web-bluetooth.test.ts +++ b/src/utils/web-bluetooth.test.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + import { polyfillBluetoothRemoteGATTCharacteristic } from './web-bluetooth'; describe('polyfillBluetoothRemoteGATTCharacteristic', () => { diff --git a/src/utils/web-bluetooth.ts b/src/utils/web-bluetooth.ts index d03ecaa5..81ced620 100644 --- a/src/utils/web-bluetooth.ts +++ b/src/utils/web-bluetooth.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2020 The Pybricks Authors + /** * Current definition of BluetoothRemoteGATTCharacteristic doesn't include * new Web Bluetooth APIs.