You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Beep(Melody melody) was checking Melody elements with checking duration of beeping and duration of waiting as not being lower than zero. Now it is checking with equal or lower than zero as it should be.
19
19
* SleepWithTitle(int duration) method added instead of Sleep(int duration). It writes sleeping duration into Console's title.
20
20
* Sleep(int duration) now only waits instead of writing sleeping duration into screen.
21
21
* Several features were not working due to default values of ConsoleOptions and ScreenColorOptions. Features like WriteLine() or StartingMethod() now can be used without calling `StartUp()`.
22
+
* [Hotfix]: Beep(Melody melody) was writing error on notes when duration of waiting as third element is zero.
22
23
See changelog (https://github.com/meokullu/HelpConsole/blob/master/CHANGELOG.md)
Copy file name to clipboardExpand all lines: HelpConsole/src/Beep.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ public static void Beep(Melody melody)
88
88
if(melody.Notes[i+1]<=0||melody.Notes[i+2]<=0)
89
89
{
90
90
//
91
-
WriteLine($"Error on notes. Notes at index: {i+1}/{i+2}{(melody.Notes[i+1]<0?"beeping duration should be greater than 0":"")}{(melody.Notes[i+2]<0?"waiting duration should be greater than 0":"")}");
91
+
WriteLine($"Error on notes. Notes at index: {i+1}/{i+2}{(melody.Notes[i+1]<=0?"beeping duration should be greater than 0":"")}{(melody.Notes[i+2]<=0?"waiting duration should be greater than 0":"")}");
0 commit comments