Skip to content

Commit 7b2566f

Browse files
Changed wav file URI to download properly
The previous wav file url would download the github html page instead of the actual wav file, causing Windows Media Player to fail to play it. Changing the URI to the raw content fixes this.
1 parent ba7be09 commit 7b2566f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Hi_Chewy/Hi_Chewy.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void loop() {
1414
DigiKeyboard.sendKeyStroke(KEY_ENTER);
1515
DigiKeyboard.delay(500);
1616
DigiKeyboard.print(F("start-sleep 300;"));
17-
DigiKeyboard.print(F("irm -uri \"https://github.com/apsecdev/DigiSpark-Scripts/blob/master/Hi_Chewy/Chewbacca.wav\" -OutFile \"$env:temp\\play.wav\";"));
17+
DigiKeyboard.print(F("irm -uri \"https://github.com/apsecdev/DigiSpark-Scripts/blob/master/Hi_Chewy/Chewbacca.wav?raw=true\" -OutFile \"$env:temp\\play.wav\";"));
1818
DigiKeyboard.print(F("Add-Type -AssemblyName presentationCore;"));
1919
DigiKeyboard.print(F("$filepath = [uri] \"$env:temp\\play.wav\";"));
2020
DigiKeyboard.print(F("$wmplayer = New-Object System.Windows.Media.MediaPlayer;"));

0 commit comments

Comments
 (0)