Skip to content

Commit e6f9318

Browse files
committed
Fix log spam.
1 parent fcd2374 commit e6f9318

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

SerialPrograms/Source/NintendoSwitch/NintendoSwitch_ConsoleState.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,12 @@ void ConsoleState::set_console_type(Logger& logger, ConsoleType type){
135135

136136
}while (false);
137137

138-
logger.log(
139-
std::string("Setting console type to: ") + ConsoleType_strings(type),
140-
COLOR_BLUE
141-
);
138+
if (!confirmed || current != type){
139+
logger.log(
140+
std::string("Setting console type to: ") + ConsoleType_strings(type),
141+
COLOR_BLUE
142+
);
143+
}
142144

143145
m_data->m_console_type.store(type, std::memory_order_relaxed);
144146
m_data->m_console_type_confirmed.store(true, std::memory_order_relaxed);

0 commit comments

Comments
 (0)