Replaced a magic value with a namedmagic value

This commit is contained in:
jaby 2022-09-05 17:23:51 +02:00
parent 0a720dc906
commit d6259b22f5
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() {