mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
23 lines
556 B
C++
23 lines
556 B
C++
#include "dead_pixels_test_controller.h"
|
|
|
|
namespace HardwareTest {
|
|
|
|
constexpr KDColor DeadPixelsTestController::k_colors[DeadPixelsTestController::k_numberOfAdditionalColors];
|
|
|
|
bool DeadPixelsTestController::handleEvent(Ion::Events::Event event) {
|
|
if (event != Ion::Events::OK) {
|
|
return true;
|
|
}
|
|
if (m_colorIndex == k_numberOfAdditionalColors) {
|
|
// Go to the next step - this will be handled by the WizardViewController
|
|
return false;
|
|
} else {
|
|
m_colorIndex++;
|
|
m_view.setColor(k_colors[m_colorIndex - 1]);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|