Skip to content

Commit 917ca55

Browse files
authored
Merge pull request #4 from RogueMaster/dev
Merge changes
2 parents 1583e1a + 2c2d373 commit 917ca55

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

ReadMe.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Latest Updates:
55
- Merged new updates from main.
66

77
**Special Instructions:**
8-
- Download these files to place into subghz/assets folder on your SD card. Change the two _map files to contain the location of your specific subghz files.
9-
- - assets/resources/subghz/assets/universal_rf_map
10-
- - assets/resources/subghz/assets/touchtunes_map
11-
- - assets/resources/subghz/assets/setting_user
12-
- - assets/resources/subghz/assets/setting_frequency_analyzer_user
13-
- Download this file to place into nfc/assets folder on your SD card.
14-
- - assets/resources/nfc/assets/mf_classic_dict.nfc
15-
- Add a folder to SD card for 'wav_player' (for 8bit 2ch unsigned wav files)
16-
- Add a folder to SD card for 'music_player' (fmf and rtttl files)
8+
- Download these files into the subghz/assets folder on your SD card. Edit the two `_map` files to contain your specific subghz (.SUB) files.
9+
- - [assets/resources/subghz/assets/universal_rf_map](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/dev/assets/resources/subghz/assets/universal_rf_map)
10+
- - [assets/resources/subghz/assets/touchtunes_map](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/dev/assets/resources/subghz/assets/touchtunes_map)
11+
- - [assets/resources/subghz/assets/setting_user](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/dev/assets/resources/subghz/assets/setting_user)
12+
- - [assets/resources/subghz/assets/setting_frequency_analyzer_user](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/dev/assets/resources/subghz/assets/setting_frequency_analyzer_user)
13+
- Download this file into the nfc/assets folder on your SD card.
14+
- - [assets/resources/nfc/assets/mf_classic_dict.nfc](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/dev/assets/resources/nfc/assets/mf_classic_dict.nfc)
15+
- Add a folder to SD card named `wav_player` (for 8bit 2ch unsigned wav files)
16+
- Add a folder to SD card named `music_player` (FMF and RTTTL/TXT files)
1717

1818
Plugins:
1919
- [Clock/Stopwatch (By CompaqDisc, Stopwatch & sound alert by me)](https://gist.github.com/CompaqDisc/4e329c501bd03c1e801849b81f48ea61)

applications/clock_app/clock_app.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ static void clock_render_callback(Canvas* const canvas, void* ctx) {
6464
elements_button_right(canvas, "S:PoRa");
6565
} else if(songSelect==2) {
6666
elements_button_right(canvas, "S:Mario");
67+
} else if(songSelect==3) {
68+
elements_button_right(canvas, "S:ByMin");
6769
}
6870
}
6971

@@ -140,7 +142,7 @@ static void clock_tick(void* ctx) {
140142
PluginEvent event = {.type = EventTypeTick};
141143
if(timerStarted) {
142144
timerSecs=timerSecs+1;
143-
if(timerSecs%60==0) {
145+
if(timerSecs%60==0 && songSelect!=0) {
144146
NotificationApp* notification = furi_record_open("notification");
145147
notification_message(notification, &clock_alert_perMin);
146148
furi_record_close("notification");
@@ -233,14 +235,16 @@ int32_t clock_app(void* p) {
233235
songSelect=1;
234236
} else if(songSelect==1) {
235237
songSelect=2;
238+
} else if(songSelect==2) {
239+
songSelect=3;
236240
} else {
237241
songSelect=0;
238242
}
239243
break;
240244
case InputKeyLeft:
241245
break;
242246
case InputKeyOk:
243-
if(songSelect==1 || songSelect==2) {
247+
if(songSelect==1 || songSelect==2 || songSelect==3) {
244248
NotificationApp* notification = furi_record_open("notification");
245249
notification_message(notification, &clock_alert_startStop);
246250
furi_record_close("notification");

0 commit comments

Comments
 (0)