lsirq: Restore enumeration of interrupt line

This was broken by changes to `JsonObject::get_deprecated_string`.
This commit is contained in:
Jelle Raaijmakers 2023-05-16 23:04:46 +02:00 committed by Andreas Kling
parent 6c7ee5344c
commit e6935cbaaf
Notes: sideshowbarker 2024-07-17 06:33:00 +09:00

View file

@ -35,7 +35,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
json.as_array().for_each([cpu_count](JsonValue const& value) {
auto& handler = value.as_object();
auto purpose = handler.get_deprecated_string("purpose"sv).value_or({});
auto interrupt = handler.get_deprecated_string("interrupt_line"sv).value_or({});
auto interrupt = handler.get_u8("interrupt_line"sv).value();
auto controller = handler.get_deprecated_string("controller"sv).value_or({});
auto call_counts = handler.get_array("per_cpu_call_counts"sv).value();