Replaced a magic value with a namedmagic value
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user