Update main.cpp
Update main.cpp

removed "union" because it causes the result of auto-test not stable (sometimes FAIL, sometimes PASS), after removed, the test result is  all PASS.
kl-cruz/mbed-os,struempelix/mbed,bcostm/mbed-os,JasonHow44/mbed,geky/mbed,ryankurte/mbed-os,larks/mbed,maximmbed/mbed,Sweet-Peas/mbed,pedromes/mbed,bulislaw/mbed-os,mmorenobarm/mbed-os,rgrover/mbed,nabilbendafi/mbed,nabilbendafi/mbed,netzimme/mbed-os,masaohamanaka/mbed,fanghuaqi/mbed,theotherjimmy/mbed,ban4jp/mbed,Archcady/mbed-os,ARM-software/mbed-beetle,jpbrucker/mbed,NXPmicro/mbed,mazimkhan/mbed-os,andreaslarssonublox/mbed,bcostm/mbed-os,nRFMesh/mbed-os,bentwire/mbed,svogl/mbed-os,adamgreen/mbed,nvlsianpu/mbed,adustm/mbed,dbestm/mbed,arostm/mbed-os,arostm/mbed-os,nabilbendafi/mbed,dbestm/mbed,dbestm/mbed,pi19404/mbed,fvincenzo/mbed-os,brstew/MBED-BUILD,kjbracey-arm/mbed,pradeep-gr/mbed-os5-onsemi,al177/mbed,DanKupiniak/mbed,EmuxEvans/mbed,pi19404/mbed,theotherjimmy/mbed,kpurusho/mbed,screamerbg/mbed,NXPmicro/mbed,Timmmm/mbed,tung7970/mbed-os-1,rgrover/mbed,autopulated/mbed,Tiryoh/mbed,jeremybrodt/mbed,devanlai/mbed,svogl/mbed-os,kpurusho/mbed,mazimkhan/mbed-os,c1728p9/mbed-os,mmorenobarm/mbed-os,EmuxEvans/mbed,mikaleppanen/mbed-os,YarivCol/mbed-os,fpiot/mbed-ats,kjbracey-arm/mbed,betzw/mbed-os,jrjang/mbed,Archcady/mbed-os,CalSol/mbed,brstew/MBED-BUILD,pi19404/mbed,logost/mbed,Archcady/mbed-os,tung7970/mbed-os-1,mazimkhan/mbed-os,wodji/mbed,andcor02/mbed-os,hwfwgrp/mbed,catiedev/mbed-os,Shengliang/mbed,adamgreen/mbed,jferreir/mbed,fahhem/mbed-os,tung7970/mbed-os,fahhem/mbed-os,naves-thiago/mbed-midi,HeadsUpDisplayInc/mbed,mnlipp/mbed,geky/mbed,kl-cruz/mbed-os,devanlai/mbed,alertby/mbed,nvlsianpu/mbed,screamerbg/mbed,pradeep-gr/mbed-os5-onsemi,JasonHow44/mbed,xcrespo/mbed,CalSol/mbed,jamesadevine/mbed,theotherjimmy/mbed,screamerbg/mbed,rgrover/mbed,infinnovation/mbed-os,ARM-software/mbed-beetle,geky/mbed,larks/mbed,naves-thiago/mbed-midi,tung7970/mbed-os-1,mnlipp/mbed,NXPmicro/mbed,YarivCol/mbed-os,jeremybrodt/mbed,wodji/mbed,hwfwgrp/mbed,monkiineko/mbed-os,jamesadevine/mbed,svastm/mbed,fanghuaqi/mbed,cvtsi2sd/mbed-os,rosterloh/mbed,karsev/mbed-os,masaohamanaka/mbed,fvincenzo/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,Tiryoh/mbed,adamgreen/mbed,adamgreen/mbed,theotherjimmy/mbed,alertby/mbed,catiedev/mbed-os,j-greffe/mbed-os,c1728p9/mbed-os,catiedev/mbed-os,RonEld/mbed,bikeNomad/mbed,struempelix/mbed,K4zuki/mbed,K4zuki/mbed,bulislaw/mbed-os,DanKupiniak/mbed,infinnovation/mbed-os,devanlai/mbed,Marcomissyou/mbed,Sweet-Peas/mbed,andreaslarssonublox/mbed,fpiot/mbed-ats,nabilbendafi/mbed,xcrespo/mbed,ban4jp/mbed,fanghuaqi/mbed,YarivCol/mbed-os,NXPmicro/mbed,hwfwgrp/mbed,fpiot/mbed-ats,HeadsUpDisplayInc/mbed,andcor02/mbed-os,betzw/mbed-os,jferreir/mbed,dbestm/mbed,theotherjimmy/mbed,YarivCol/mbed-os,RonEld/mbed,mmorenobarm/mbed-os,ARM-software/mbed-beetle,catiedev/mbed-os,arostm/mbed-os,pbrook/mbed,pbrook/mbed,adustm/mbed,catiedev/mbed-os,adustm/mbed,arostm/mbed-os,bcostm/mbed-os,nRFMesh/mbed-os,bcostm/mbed-os,mnlipp/mbed,cvtsi2sd/mbed-os,tung7970/mbed-os-1,dbestm/mbed,karsev/mbed-os,larks/mbed,bentwire/mbed,kpurusho/mbed,tung7970/mbed-os,NitinBhaskar/mbed,radhika-raghavendran/mbed-os5.1-onsemi,nabilbendafi/mbed,bcostm/mbed-os,Timmmm/mbed,wodji/mbed,svogl/mbed-os,alertby/mbed,jferreir/mbed,radhika-raghavendran/mbed-os5.1-onsemi,rosterloh/mbed,svogl/mbed-os,bulislaw/mbed-os,pbrook/mbed,wodji/mbed,mmorenobarm/mbed-os,mazimkhan/mbed-os,struempelix/mbed,masaohamanaka/mbed,ryankurte/mbed-os,Timmmm/mbed,svastm/mbed,jeremybrodt/mbed,EmuxEvans/mbed,pradeep-gr/mbed-os5-onsemi,karsev/mbed-os,fpiot/mbed-ats,c1728p9/mbed-os,pi19404/mbed,svogl/mbed-os,maximmbed/mbed,jferreir/mbed,bentwire/mbed,Shengliang/mbed,mmorenobarm/mbed-os,autopulated/mbed,cvtsi2sd/mbed-os,jpbrucker/mbed,masaohamanaka/mbed,logost/mbed,devanlai/mbed,jeremybrodt/mbed,mmorenobarm/mbed-os,jpbrucker/mbed,nRFMesh/mbed-os,netzimme/mbed-os,pradeep-gr/mbed-os5-onsemi,pedromes/mbed,kl-cruz/mbed-os,mikaleppanen/mbed-os,autopulated/mbed,al177/mbed,RonEld/mbed,jamesadevine/mbed,bentwire/mbed,radhika-raghavendran/mbed-os5.1-onsemi,nvlsianpu/mbed,jamesadevine/mbed,xcrespo/mbed,andreaslarssonublox/mbed,hwfwgrp/mbed,nabilbendafi/mbed,getopenmono/mbed,nRFMesh/mbed-os,autopulated/mbed,nRFMesh/mbed-os,c1728p9/mbed-os,bikeNomad/mbed,monkiineko/mbed-os,infinnovation/mbed-os,ryankurte/mbed-os,fpiot/mbed-ats,pbrook/mbed,rgrover/mbed,brstew/MBED-BUILD,pi19404/mbed,bikeNomad/mbed,adustm/mbed,pradeep-gr/mbed-os5-onsemi,HeadsUpDisplayInc/mbed,pedromes/mbed,pi19404/mbed,EmuxEvans/mbed,autopulated/mbed,CalSol/mbed,YarivCol/mbed-os,ryankurte/mbed-os,brstew/MBED-BUILD,kpurusho/mbed,rosterloh/mbed,jrjang/mbed,mbedmicro/mbed,andreaslarssonublox/mbed,cvtsi2sd/mbed-os,bentwire/mbed,svastm/mbed,ban4jp/mbed,svogl/mbed-os,adustm/mbed,bikeNomad/mbed,fvincenzo/mbed-os,pedromes/mbed,svastm/mbed,brstew/MBED-BUILD,andreaslarssonublox/mbed,NitinBhaskar/mbed,jamesadevine/mbed,Marcomissyou/mbed,struempelix/mbed,EmuxEvans/mbed,fahhem/mbed-os,betzw/mbed-os,JasonHow44/mbed,Tiryoh/mbed,getopenmono/mbed,ban4jp/mbed,hwfwgrp/mbed,pbrook/mbed,autopulated/mbed,maximmbed/mbed,fanghuaqi/mbed,fahhem/mbed-os,Tiryoh/mbed,NXPmicro/mbed,screamerbg/mbed,CalSol/mbed,ARM-software/mbed-beetle,mnlipp/mbed,geky/mbed,EmuxEvans/mbed,mikaleppanen/mbed-os,tung7970/mbed-os,Shengliang/mbed,HeadsUpDisplayInc/mbed,Marcomissyou/mbed,logost/mbed,mikaleppanen/mbed-os,al177/mbed,fvincenzo/mbed-os,betzw/mbed-os,Archcady/mbed-os,fahhem/mbed-os,alertby/mbed,HeadsUpDisplayInc/mbed,NitinBhaskar/mbed,xcrespo/mbed,rosterloh/mbed,K4zuki/mbed,arostm/mbed-os,kjbracey-arm/mbed,fpiot/mbed-ats,jamesadevine/mbed,getopenmono/mbed,RonEld/mbed,masaohamanaka/mbed,YarivCol/mbed-os,fvincenzo/mbed-os,betzw/mbed-os,struempelix/mbed,jpbrucker/mbed,adustm/mbed,JasonHow44/mbed,devanlai/mbed,HeadsUpDisplayInc/mbed,jrjang/mbed,andcor02/mbed-os,NitinBhaskar/mbed,j-greffe/mbed-os,K4zuki/mbed,nvlsianpu/mbed,infinnovation/mbed-os,JasonHow44/mbed,kl-cruz/mbed-os,jrjang/mbed,pradeep-gr/mbed-os5-onsemi,j-greffe/mbed-os,Archcady/mbed-os,JasonHow44/mbed,cvtsi2sd/mbed-os,mazimkhan/mbed-os,K4zuki/mbed,pedromes/mbed,bulislaw/mbed-os,hwfwgrp/mbed,ban4jp/mbed,mbedmicro/mbed,maximmbed/mbed,kpurusho/mbed,mazimkhan/mbed-os,jeremybrodt/mbed,naves-thiago/mbed-midi,maximmbed/mbed,RonEld/mbed,K4zuki/mbed,logost/mbed,DanKupiniak/mbed,al177/mbed,Marcomissyou/mbed,fanghuaqi/mbed,catiedev/mbed-os,monkiineko/mbed-os,bulislaw/mbed-os,svastm/mbed,netzimme/mbed-os,mnlipp/mbed,larks/mbed,ban4jp/mbed,dbestm/mbed,Shengliang/mbed,getopenmono/mbed,nvlsianpu/mbed,bikeNomad/mbed,andcor02/mbed-os,devanlai/mbed,Sweet-Peas/mbed,mnlipp/mbed,masaohamanaka/mbed,struempelix/mbed,arostm/mbed-os,Marcomissyou/mbed,al177/mbed,radhika-raghavendran/mbed-os5.1-onsemi,j-greffe/mbed-os,Sweet-Peas/mbed,karsev/mbed-os,screamerbg/mbed,Timmmm/mbed,wodji/mbed,logost/mbed,rosterloh/mbed,j-greffe/mbed-os,rosterloh/mbed,logost/mbed,jferreir/mbed,radhika-raghavendran/mbed-os5.1-onsemi,netzimme/mbed-os,Marcomissyou/mbed,c1728p9/mbed-os,karsev/mbed-os,Shengliang/mbed,ryankurte/mbed-os,netzimme/mbed-os,nRFMesh/mbed-os,Archcady/mbed-os,tung7970/mbed-os,andcor02/mbed-os,andcor02/mbed-os,ryankurte/mbed-os,alertby/mbed,Shengliang/mbed,CalSol/mbed,infinnovation/mbed-os,Tiryoh/mbed,adamgreen/mbed,alertby/mbed,bulislaw/mbed-os,rgrover/mbed,jrjang/mbed,kl-cruz/mbed-os,maximmbed/mbed,al177/mbed,getopenmono/mbed,monkiineko/mbed-os,jferreir/mbed,NitinBhaskar/mbed,cvtsi2sd/mbed-os,getopenmono/mbed,kl-cruz/mbed-os,j-greffe/mbed-os,Sweet-Peas/mbed,naves-thiago/mbed-midi,bentwire/mbed,netzimme/mbed-os,Timmmm/mbed,karsev/mbed-os,naves-thiago/mbed-midi,monkiineko/mbed-os,pedromes/mbed,larks/mbed,screamerbg/mbed,mikaleppanen/mbed-os,fahhem/mbed-os,larks/mbed,kjbracey-arm/mbed,kpurusho/mbed,xcrespo/mbed,Sweet-Peas/mbed,theotherjimmy/mbed,Timmmm/mbed,DanKupiniak/mbed,c1728p9/mbed-os,wodji/mbed,mbedmicro/mbed,jpbrucker/mbed,CalSol/mbed,xcrespo/mbed,monkiineko/mbed-os,pbrook/mbed,adamgreen/mbed,tung7970/mbed-os-1,NXPmicro/mbed,naves-thiago/mbed-midi,bcostm/mbed-os,mbedmicro/mbed,mbedmicro/mbed,jpbrucker/mbed,infinnovation/mbed-os,jrjang/mbed,mikaleppanen/mbed-os,Tiryoh/mbed,brstew/MBED-BUILD,tung7970/mbed-os,RonEld/mbed,geky/mbed,nvlsianpu/mbed,betzw/mbed-os