overriding
function Mode (This : MCP23_GPIO_Point) return HAL.GPIO.GPIO_Mode is
pragma Unreferenced (This);
begin
return HAL.GPIO.Output;
end Mode;
seems to have been neglected when implemented (file mcp23x08.adb starting at line 303).
It could be written as
overriding
function Mode (This : MCP23_GPIO_Point) return HAL.GPIO.GPIO_Mode is
begin
return (if This.Device.Is_Output (This.Pin) then HAL.GPIO.Output else HAL.GPIO.Input);
end Mode;
The function
seems to have been neglected when implemented (file
mcp23x08.adb
starting at line 303).It could be written as
Untested