boot: various bugfixes (b/w logo displays now)
This commit is contained in:
1 parent
fdab964e3d
commit
affdea9244
10 files changed
+47
-19
No files matched your search
+2
-2
@@ -25,8 +25,8 @@ namespace ams::pwm::driver::board::nintendo_nx::impl {
|
||||
constexpr inline size_t PwmRegistersSize = 0x100;
|
||||
|
||||
constexpr const ChannelDefinition SupportedChannels[] = {
|
||||
{ pwm::DeviceCode_CpuFan, 0 },
|
||||
{ pwm::DeviceCode_LcdBacklight, 1 },
|
||||
{ pwm::DeviceCode_LcdBacklight, 0 },
|
||||
{ pwm::DeviceCode_CpuFan, 1 },
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -141,7 +141,7 @@ namespace ams::pwm::driver::board::nintendo_nx::impl {
|
||||
AMS_ASSERT(device != nullptr);
|
||||
|
||||
/* Validate the duty. */
|
||||
R_UNLESS(0 <= duty && duty < MaxDuty, pwm::ResultInvalidArgument());
|
||||
R_UNLESS(0 <= duty && duty <= MaxDuty, pwm::ResultInvalidArgument());
|
||||
|
||||
/* Acquire exclusive access to the device registers. */
|
||||
std::scoped_lock lk(device->SafeCastTo<PwmDeviceImpl>());
|
||||
|
||||
Reference in new issue
Block a user