Disclosed are compounds of Formula (I) (I) N-oxides, or salts thereof, wherein R1, G, A, R5, and n are defined herein. Also disclosed are methods of using such compounds as inhibitors of signaling through Toll-like receptor 7, or 8, or 9, and pharmaceutical compositions comprising such compounds. These compounds are useful in treating inflammatory and autoimmune diseases.