Skip to content

Commit

Permalink
[MAJOR] fixed teensy flash, updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lansalot committed Feb 19, 2024
1 parent 819370d commit 7604e10
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
push:
branches:
- main
paths-ignore:
- 'Firmwares/**'
- '.github/**'
- 'Firmwares.csv'
- 'README.md'
workflow_dispatch:

env:
Expand Down
1 change: 1 addition & 0 deletions TeensyFlasher/frmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions TeensyFlasher/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,6 @@ private void frmMain_Load(object sender, EventArgs e)
ScanPorts();
}

private void lbFirmware_SelectedIndexChanged(object sender, EventArgs e)
{
var lines = File.ReadAllLines(localCSV);
chosenFirmware = lines
.Where(line => line.Split(',')[0] == (String)lbFirmware.SelectedValue)
.Select(line => line.Split(',')[1])
.FirstOrDefault();
if (lbFirmware.SelectedIndex > -1 && lbTeensies.SelectedIndex > -1 && lbTeensies.Items.Count > 0)
{
btnProgram.Enabled = true;
}
}

bool DownloadFile(string url, string localFile)
{
try
Expand Down Expand Up @@ -759,6 +746,19 @@ private void rbDualRelPos_CheckedChanged(object sender, EventArgs e)
_FileName = ".\\DualRelPos.txt";
}
}

private void lbFirmware_SelectedIndexChanged_1(object sender, EventArgs e)
{
var lines = File.ReadAllLines(localCSV);
chosenFirmware = lines
.Where(line => line.Split(',')[0] == (String)lbFirmware.SelectedValue)
.Select(line => line.Split(',')[1])
.FirstOrDefault();
if (lbFirmware.SelectedIndex > -1 && lbTeensies.SelectedIndex > -1 && lbTeensies.Items.Count > 0)
{
btnProgram.Enabled = true;
}
}
}

}

0 comments on commit 7604e10

Please sign in to comment.