Replaced a magic value with a namedmagic value

This commit is contained in:
Jaby 2022-09-05 17:23:51 +02:00 committed by Jaby
parent 6531bea2df
commit d7f4f45e3a
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ namespace SPU {
} }
static void setup_data_transfer_control() { static void setup_data_transfer_control() {
DataTransferControl.write((2 << 1)); static constexpr uint16_t RequiredValue = (2 << 1);
DataTransferControl.write(RequiredValue);
} }
void setup() { void setup() {