Ok, I have now gone thru all schematics and it looks like it could have been possible to detect if the USB shield is connected to the stack since if the TinuDuino had access to the VIN pin in the expansion (pin 10) which is the gatesignal to Q1 on the USB shield board which probably would have different values when USB board is stacked or not (do not have probes small enough to measure on the expansion connector)
So my not so elegant solution will be to add another switch to the casing to manually select if USB shield is connected or not which gives me a new problem of finding other switches for Power and GPS logging On/Off and USB stacked so it fits on the small (50x50 mm case)
And I was probably not clear over why my logger would have a conflict between GPS UART and USB UART and that is since I will change the GPS Interface from SW (AD0/AD1) to HW (IO1/IO0) by moving R2/R3 to R4/R1.
So my not so elegant solution will be to add another switch to the casing to manually select if USB shield is connected or not which gives me a new problem of finding other switches for Power and GPS logging On/Off and USB stacked so it fits on the small (50x50 mm case)
And I was probably not clear over why my logger would have a conflict between GPS UART and USB UART and that is since I will change the GPS Interface from SW (AD0/AD1) to HW (IO1/IO0) by moving R2/R3 to R4/R1.