Enhanced detection of flash type in use