mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-30 14:35:17 -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
|
@ -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>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue