Replaced a magic value with a namedmagic value

This commit is contained in:
Jaby 2022-09-05 17:23:51 +02:00
parent 21e53d178f
commit acfa8dae92
1 changed files with 3 additions and 1 deletions

View File

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