Skip to content

Commit

Permalink
Skip Preamp token for now
Browse files Browse the repository at this point in the history
  • Loading branch information
VenturaDelMonte committed Feb 9, 2021
1 parent 1ce1fe9 commit 25a7784
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoeq/fixed_band.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ type FixedBandEQs []FixedBandEQ
func ToFixedBandEQs(data []byte) (FixedBandEQs, error) {
var eqs FixedBandEQs
rows := strings.Split(string(data), "\n")
fmt.Printf("Got: %s\n", string(data))
for _, row := range rows {
if row == "" {
continue
}
if strings.HasPrefix(row, "Preamp") {
continue
}
fmt.Printf("Got: %s\n", string(row))
eqFields := strings.Fields(row)
fmt.Printf("Got: %s\n", eqFields)
freq, err := strconv.Atoi(eqFields[5])
if err != nil {
return nil, fmt.Errorf("could not parse frequency: %w", err)
Expand Down

0 comments on commit 25a7784

Please sign in to comment.