The other option of course, is that martians had communicated with him and he is falsely attributed as being the creator of Morse code, when it should be called martian code. We may not know the truth in our lifetime, but future generations may find out when martians pay an open visit to earthlings.
LOL!!!!