boot: various bugfixes (b/w logo displays now)
This commit is contained in:
@@ -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 },
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -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