Skip to content

Commit

Permalink
Release 2.0.104-b7
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Oct 11, 2024
1 parent 75916e9 commit c4a5b7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ledfx",
"version": "2.0.104-b6",
"version": "2.0.104-b7",
"description": "LedFx v2 - BladeMOD",
"author": "YeonV aka Blade",
"private": true,
Expand Down
5 changes: 1 addition & 4 deletions src/components/Midi/LaunchpadButton.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import Button from '@mui/material/Button'
import DialogTitle from '@mui/material/DialogTitle'
import Dialog from '@mui/material/Dialog'
import { darken, DialogContent, Divider, IconButton, MenuItem, Select, Stack, TextField, Typography } from '@mui/material'
import { darken, DialogContent, Divider, IconButton, Stack, TextField, Typography } from '@mui/material'
import { useEffect, useRef, useState } from 'react'
import LpColorPicker from './LpColorPicker'
import Assign from '../Gamepad/Assign'
import useStore from '../../store/useStore'
import { Autorenew, Save } from '@mui/icons-material'
import { MidiDevices } from '../../utils/MidiDevices/MidiDevices'
import { WebMidi } from 'webmidi'
import ColorTypePicker from './ColorTypePicker'

const LaunchpadButton = ({
Expand All @@ -31,7 +30,6 @@ const LaunchpadButton = ({
}) => {
// console.log(bgColor)
const [open, setOpen] = useState(false)
const midiOutput = useStore((state) => state.midiOutput)
const midiMapping = useStore((state) => state.midiMapping)
const midiEvent = useStore((state) => state.midiEvent)
const midiType = useStore((state) => state.midiType)
Expand Down Expand Up @@ -82,7 +80,6 @@ const LaunchpadButton = ({
const [midiButtonNumber, setMidiButtonNumber] = useState(currentMapping.buttonNumber || 0)
const [midiRecord, setMidiRecord] = useState(false)

const output = midiOutput !== '' ? WebMidi.getOutputByName(midiOutput) : WebMidi.outputs[1]
const lp = MidiDevices[midiType][midiModel]
const isRgb = 'rgb' in lp.fn
function handleButtonPress(command: string, payload?: any) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Midi/LpColorPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const LpColorPicker = ({ onColorSelect, defaultColor, midiButtonNumber, type = '
setSelectedColor(defaultColor as IColor)
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [defaultColor])

const handleColorClick = (color: IColor) => {
Expand Down

0 comments on commit c4a5b7c

Please sign in to comment.