Skip to content

Commit 8ea38a9

Browse files
committed
remapOutQuad
1 parent d85e5b4 commit 8ea38a9

File tree

10 files changed

+417
-296
lines changed

10 files changed

+417
-296
lines changed

src/eez/apps/psu/conf_advanced.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define PSU_SERIAL "0000000"
2727

2828
/// Firmware version.
29-
#define FIRMWARE "v1.2"
29+
#define FIRMWARE "M1"
3030

3131
/// Manufacturer description text used for *IDN?
3232
#define IDN_MANUFACTURER "Envox"

src/eez/apps/psu/persist_conf.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,6 @@ using namespace eez::mcu::display;
4444

4545
#include <eez/gui/widgets/yt_graph.h>
4646

47-
#define NUM_CHANNELS_VIEW_MODES 4
48-
49-
#define CHANNELS_VIEW_MODE_NUMERIC 0
50-
#define CHANNELS_VIEW_MODE_HORZ_BAR 1
51-
#define CHANNELS_VIEW_MODE_VERT_BAR 2
52-
#define CHANNELS_VIEW_MODE_YT 3
53-
54-
#define NUM_CHANNELS_VIEW_MODES_IN_MAX 3
55-
56-
#define CHANNELS_VIEW_MODE_IN_MAX_NUMERIC 0
57-
#define CHANNELS_VIEW_MODE_IN_MAX_HORZ_BAR 1
58-
#define CHANNELS_VIEW_MODE_IN_MAX_YT 2
59-
6047
namespace eez {
6148
namespace psu {
6249

src/eez/apps/psu/persist_conf.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@
1818

1919
#pragma once
2020

21+
#define NUM_CHANNELS_VIEW_MODES 4
22+
23+
#define CHANNELS_VIEW_MODE_NUMERIC 0
24+
#define CHANNELS_VIEW_MODE_HORZ_BAR 1
25+
#define CHANNELS_VIEW_MODE_VERT_BAR 2
26+
#define CHANNELS_VIEW_MODE_YT 3
27+
28+
#define NUM_CHANNELS_VIEW_MODES_IN_MAX 3
29+
30+
#define CHANNELS_VIEW_MODE_IN_MAX_NUMERIC 0
31+
#define CHANNELS_VIEW_MODE_IN_MAX_HORZ_BAR 1
32+
#define CHANNELS_VIEW_MODE_IN_MAX_YT 2
33+
2134
namespace eez {
2235
namespace psu {
2336

src/eez/gui/action_impl.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,19 @@ void action_toggle_channels_view_mode() {
499499

500500
void action_toggle_channels_max_view() {
501501
selectChannel();
502+
503+
auto channelsIsMaxView = persist_conf::devConf.flags.channelsIsMaxView;
504+
auto channelMax = persist_conf::devConf.flags.channelMax;
505+
502506
persist_conf::toggleChannelsMaxView(g_channel->index);
507+
508+
if (!channelsIsMaxView && persist_conf::devConf.flags.channelsIsMaxView) {
509+
animateFromDefaultViewToMaxView();
510+
} else if (channelsIsMaxView && !persist_conf::devConf.flags.channelsIsMaxView) {
511+
animateFromMaxViewToDefaultView();
512+
} else {
513+
animateFromMinViewToMaxView(channelMax);
514+
}
503515
}
504516

505517
void action_ethernet_toggle() {

0 commit comments

Comments
 (0)