mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 16:44:22 -04:00
boot: various bugfixes (b/w logo displays now)
This commit is contained in:
parent
fdab964e3d
commit
affdea9244
10 changed files with 47 additions and 19 deletions
|
@ -84,15 +84,19 @@ namespace ams::i2c {
|
|||
{
|
||||
std::scoped_lock lk(g_i2c_mutex);
|
||||
AMS_ASSERT(g_i2c_count > 0);
|
||||
if ((--g_i2c_count) == 0) {
|
||||
g_i2c_manager.reset();
|
||||
if (g_i2c_count > 0) {
|
||||
if ((--g_i2c_count) == 0) {
|
||||
g_i2c_manager.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
std::scoped_lock lk(g_i2c_pcv_mutex);
|
||||
AMS_ASSERT(g_i2c_pcv_count > 0);
|
||||
if ((--g_i2c_pcv_count) == 0) {
|
||||
g_i2c_pcv_manager.reset();
|
||||
if (g_i2c_pcv_count > 0) {
|
||||
if ((--g_i2c_pcv_count) == 0) {
|
||||
g_i2c_pcv_manager.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue