mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
rename bootloader to lwp3-bootloader
we will probably have DFU bootloader in the future
This commit is contained in:
committed by
David Lechner
parent
d873ad2520
commit
c975613e1c
@@ -1,14 +1,14 @@
|
||||
import { Dispatch as ReduxDispatch } from 'redux';
|
||||
import { BLEAction, BLEConnectAction, BLEDataAction } from './ble';
|
||||
import { EditorAction } from './editor';
|
||||
import { HubAction, HubMessageAction } from './hub';
|
||||
import {
|
||||
BootloaderAction,
|
||||
BootloaderConnectionAction,
|
||||
BootloaderDidRequestAction,
|
||||
BootloaderRequestAction,
|
||||
BootloaderResponseAction,
|
||||
} from './bootloader';
|
||||
import { EditorAction } from './editor';
|
||||
import { HubAction, HubMessageAction } from './hub';
|
||||
} from './lwp3-bootloader';
|
||||
import { MpyAction } from './mpy';
|
||||
import { NotificationAction } from './notification';
|
||||
import { ServiceWorkerAction } from './service-worker';
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
// Copyright (c) 2020 The Pybricks Authors
|
||||
|
||||
import { Action } from 'redux';
|
||||
import { Command, HubType, ProtectionLevel, Result } from '../protocols/bootloader';
|
||||
import {
|
||||
Command,
|
||||
HubType,
|
||||
ProtectionLevel,
|
||||
Result,
|
||||
} from '../protocols/lwp3-bootloader';
|
||||
import { createCountFunc } from '../utils/iter';
|
||||
|
||||
/**
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
import { Dispatch } from '../actions';
|
||||
import { flashFirmware } from '../actions/bootloader';
|
||||
import { flashFirmware } from '../actions/lwp3-bootloader';
|
||||
import * as notification from '../actions/notification';
|
||||
import { RootState } from '../reducers';
|
||||
import { BootloaderConnectionState } from '../reducers/bootloader';
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
BootloaderConnectionActionType,
|
||||
BootloaderRequestActionType,
|
||||
BootloaderResponseActionType,
|
||||
} from '../actions/bootloader';
|
||||
} from '../actions/lwp3-bootloader';
|
||||
|
||||
/**
|
||||
* Describes the state of the bootloader connection.
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Action } from '../actions';
|
||||
import {
|
||||
BootloaderConnectionActionType,
|
||||
BootloaderConnectionFailureReason,
|
||||
} from '../actions/bootloader';
|
||||
} from '../actions/lwp3-bootloader';
|
||||
import { NotificationActionType } from '../actions/notification';
|
||||
import { ServiceWorkerActionType } from '../actions/service-worker';
|
||||
import { createCountFunc } from '../utils/iter';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import { Reducer } from 'react';
|
||||
import { combineReducers } from 'redux';
|
||||
import { BootloaderAction, BootloaderActionType } from '../actions/bootloader';
|
||||
import { BootloaderAction, BootloaderActionType } from '../actions/lwp3-bootloader';
|
||||
|
||||
const progress: Reducer<number, BootloaderAction> = (state = -1, action) => {
|
||||
switch (action.type) {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// Copyright (c) 2020 The Pybricks Authors
|
||||
|
||||
import { all } from 'redux-saga/effects';
|
||||
import bootloader from './bootloader';
|
||||
import bootloader from './lwp3-bootloader';
|
||||
import mpy from './mpy';
|
||||
|
||||
/* istanbul ignore next */
|
||||
|
||||
@@ -25,16 +25,16 @@ import {
|
||||
send,
|
||||
stateRequest,
|
||||
stateResponse,
|
||||
} from '../actions/bootloader';
|
||||
} from '../actions/lwp3-bootloader';
|
||||
import {
|
||||
Command,
|
||||
HubType,
|
||||
ProtectionLevel,
|
||||
ProtocolError,
|
||||
Result,
|
||||
} from '../protocols/bootloader';
|
||||
} from '../protocols/lwp3-bootloader';
|
||||
import { createCountFunc } from '../utils/iter';
|
||||
import bootloader from './bootloader';
|
||||
import bootloader from './lwp3-bootloader';
|
||||
|
||||
describe('message encoder', () => {
|
||||
test.each([
|
||||
@@ -57,7 +57,7 @@ import {
|
||||
rebootRequest,
|
||||
send,
|
||||
stateResponse,
|
||||
} from '../actions/bootloader';
|
||||
} from '../actions/lwp3-bootloader';
|
||||
import {
|
||||
MpyActionType,
|
||||
MpyDidCompileAction,
|
||||
@@ -87,7 +87,7 @@ import {
|
||||
parseGetInfoResponse,
|
||||
parseInitLoaderResponse,
|
||||
parseProgramFlashResponse,
|
||||
} from '../protocols/bootloader';
|
||||
} from '../protocols/lwp3-bootloader';
|
||||
import { hex } from '../utils';
|
||||
import { fmod, sumComplement32 } from '../utils/math';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Action } from '../actions';
|
||||
import {
|
||||
BootloaderConnectionActionType,
|
||||
BootloaderConnectionFailureReason,
|
||||
} from '../actions/bootloader';
|
||||
} from '../actions/lwp3-bootloader';
|
||||
import { combineServices } from '.';
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,10 +5,10 @@ import { Middleware } from 'redux';
|
||||
import { Action, Dispatch } from '../actions';
|
||||
import { RootState } from '../reducers';
|
||||
import ble from './ble';
|
||||
import bootloader from './bootloader';
|
||||
import editor from './editor';
|
||||
import errorLog from './error-log';
|
||||
import hub from './hub';
|
||||
import bootloader from './lwp3-bootloader';
|
||||
|
||||
type Service = (
|
||||
action: Action,
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
didFailToConnect,
|
||||
didReceive,
|
||||
didSend,
|
||||
} from '../actions/bootloader';
|
||||
import { CharacteristicUUID, ServiceUUID } from '../protocols/bootloader';
|
||||
} from '../actions/lwp3-bootloader';
|
||||
import { CharacteristicUUID, ServiceUUID } from '../protocols/lwp3-bootloader';
|
||||
import {
|
||||
PolyfillBluetoothRemoteGATTCharacteristic,
|
||||
polyfillBluetoothRemoteGATTCharacteristic,
|
||||
Reference in New Issue
Block a user