diff --git a/companion/src/companion.qrc b/companion/src/companion.qrc index 018d2e9e2..ba6baa82e 100644 --- a/companion/src/companion.qrc +++ b/companion/src/companion.qrc @@ -10,6 +10,8 @@ images/simulator/Horus/right.png images/simulator/Horus/top.png images/simulator/Horus/bottom.png + images/simulator/Horus/led.png + images/simulator/Horus/border-right.png images/simulator/9X/9xdb.png images/simulator/9X/9xdl.png images/simulator/9X/9xdr.png diff --git a/companion/src/images/simulator/Horus/border-right.png b/companion/src/images/simulator/Horus/border-right.png new file mode 100644 index 000000000..8c2398885 Binary files /dev/null and b/companion/src/images/simulator/Horus/border-right.png differ diff --git a/companion/src/images/simulator/Horus/bottom.png b/companion/src/images/simulator/Horus/bottom.png index 239eeb18f..7d3fb11b1 100644 Binary files a/companion/src/images/simulator/Horus/bottom.png and b/companion/src/images/simulator/Horus/bottom.png differ diff --git a/companion/src/images/simulator/Horus/led.png b/companion/src/images/simulator/Horus/led.png new file mode 100644 index 000000000..faa808888 Binary files /dev/null and b/companion/src/images/simulator/Horus/led.png differ diff --git a/companion/src/images/simulator/Horus/top.png b/companion/src/images/simulator/Horus/top.png index f0b6f7264..334f6bc56 100644 Binary files a/companion/src/images/simulator/Horus/top.png and b/companion/src/images/simulator/Horus/top.png differ diff --git a/companion/src/simulation/simulatordialog-horus.ui b/companion/src/simulation/simulatordialog-horus.ui index 8277cb0fa..dad0695bf 100644 --- a/companion/src/simulation/simulatordialog-horus.ui +++ b/companion/src/simulation/simulatordialog-horus.ui @@ -6,8 +6,8 @@ 0 0 - 808 - 738 + 960 + 850 @@ -18,8 +18,14 @@ - 808 - 16777215 + 960 + 850 + + + + + 960 + 850 @@ -96,7 +102,7 @@ 0 - + QLayout::SetFixedSize @@ -131,7 +137,145 @@ - + + + + + 0 + 0 + + + + + 480 + 9 + + + + + 480 + 9 + + + + + 5 + + + + background:url(:/images/simulator/Horus/top.png) + + + + + + + + 0 + 0 + + + + + 480 + 275 + + + + + 480 + 272 + + + + + 5 + + + + + + + + + 0 + 0 + + + + + 480 + 11 + + + + + 480 + 11 + + + + + 5 + false + + + + background:url(:/images/simulator/Horus/bottom.png) + + + + + + + + 0 + 0 + + + + + 24 + 292 + + + + + 24 + 292 + + + + background:url(:/images/simulator/Horus/led.png) + + + + + + + + 0 + 0 + + + + + 27 + 292 + + + + + 27 + 292 + + + + background:url(:/images/simulator/Horus/border-right.png) + + + + @@ -156,76 +300,10 @@ - - - - - 0 - 0 - - - - - 480 - 10 - - - - - 480 - 10 - - - - background:url(:/images/simulator/Horus/top.png) - - - - - - - - 0 - 0 - - - - - 480 - 10 - - - - - 480 - 10 - - - - background:url(:/images/simulator/Horus/bottom.png) - - - - - - - - 0 - 0 - - - - - 480 - 272 - - - - - - + + Qt::Horizontal @@ -237,8 +315,8 @@ - - + + Qt::Horizontal @@ -254,7 +332,7 @@ - Outputs + O&utputs @@ -267,7 +345,7 @@ - Outputs2 + Ou&tputs2 @@ -280,7 +358,7 @@ - Gvars + &Gvars diff --git a/radio/src/debug.h b/radio/src/debug.h index 92640a397..db2591144 100644 --- a/radio/src/debug.h +++ b/radio/src/debug.h @@ -78,8 +78,13 @@ void debugPrintf(const char * format, ...); #define TRACE_WARNING_WP(...) debugPrintf(__VA_ARGS__) #define TRACE_ERROR(...) debugPrintf("-E- " __VA_ARGS__) +#if defined(DEBUG) && !defined(SIMU) #define TIME_MEASURE_START(id) uint16_t t0 ## id = getTmr2MHz() #define TIME_MEASURE_STOP(id) TRACE("Measure(" # id ") = %.1fus", float((uint16_t)(getTmr2MHz() - t0 ## id))/2) +#else +#define TIME_MEASURE_START(id) +#define TIME_MEASURE_STOP(id) +#endif #if defined(DEBUG_TRACE_BUFFER)