[Config mem] Add hardware type field

This commit is contained in:
wheremyfoodat 2023-03-29 01:36:03 +03:00
parent 4bef096f04
commit e40a8eb194
2 changed files with 12 additions and 0 deletions

View file

@ -70,6 +70,7 @@ u8 Memory::read8(u32 vaddr) {
switch (vaddr) {
case ConfigMem::BatteryState: return getBatteryState(true, true, BatteryLevel::FourBars);
case ConfigMem::EnvInfo: return envInfo;
case ConfigMem::HardwareType: return ConfigMem::HardwareCodes::Product;
case ConfigMem::KernelVersionMinor: return u8(kernelVersion & 0xff);
case ConfigMem::KernelVersionMajor: return u8(kernelVersion >> 8);
case ConfigMem::LedState3D: return 1; // Report the 3D LED as always off (non-zero) for now