Skip to content

Commit d65c881

Browse files
fix: display device not connected in Speed Detector
1 parent 359d474 commit d65c881

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Canbus_app/scenes/DetectorSpeedOption.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ static int32_t thread_to_detect_speed(void* context) {
9999

100100
bool debug = (mcp2515_init(mcp_can) == ERROR_OK) ? true : false;
101101

102-
if(!debug) draw_device_no_connected(app);
102+
if(!debug)
103+
draw_device_no_connected(app);
104+
105+
else
106+
draw_detecting_speed(app);
103107

104108
furi_delay_ms(100);
105109

@@ -114,8 +118,6 @@ static int32_t thread_to_detect_speed(void* context) {
114118

115119
ERROR_CAN response = ERROR_NOMSG;
116120

117-
draw_detecting_speed(app);
118-
119121
while(debug) {
120122
response = is_this_bitrate(mcp_can, bitrates[bitrate_selector]);
121123

Canbus_app/scenes/mainMenu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void app_scene_menu_on_enter(void* context) {
119119
app->submenu, "Sniffing", SniffingTestOption, basic_scenes_menu_callback, app);
120120

121121
submenu_add_item(
122-
app->submenu, "SpeedDetector", SpeedDetectorOption, basic_scenes_menu_callback, app);
122+
app->submenu, "Speed Detector", SpeedDetectorOption, basic_scenes_menu_callback, app);
123123

124124
submenu_add_item(app->submenu, "Sender", SenderOption, basic_scenes_menu_callback, app);
125125

0 commit comments

Comments
 (0)