Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/generic/kbd.c

    r57d129e rffa2c8ef  
    6767static unsigned lock_keys;
    6868
    69 bool irc_service = false;
    70 int irc_phone = -1;
     69int cir_service = 0;
     70int cir_phone = -1;
    7171
    7272#define NUM_LAYOUTS 3
     
    216216        sysarg_t obio;
    217217       
    218         if (((sysinfo_get_value("kbd.cir.fhc", &fhc) == EOK) && (fhc))
    219             || ((sysinfo_get_value("kbd.cir.obio", &obio) == EOK) && (obio)))
    220                 irc_service = true;
    221        
    222         if (irc_service) {
    223                 while (irc_phone < 0)
    224                         irc_phone = service_connect_blocking(SERVICE_IRC, 0, 0);
     218        if ((sysinfo_get_value("kbd.cir.fhc", &fhc) == EOK) && (fhc))
     219                cir_service = SERVICE_FHC;
     220        else if ((sysinfo_get_value("kbd.cir.obio", &obio) == EOK) && (obio))
     221                cir_service = SERVICE_OBIO;
     222       
     223        if (cir_service) {
     224                while (cir_phone < 0)
     225                        cir_phone = service_connect_blocking(cir_service, 0, 0);
    225226        }
    226227       
Note: See TracChangeset for help on using the changeset viewer.