This morning I put my macbook under charge with the usb-c cable and apple power brick and after a while I saw that the machine was keeping going down with the charge. The icon is like if is charging, the monitor is slightly more bright but it says "not charging". Then I tried to use my Nexus 5x charger and the machine actually charges. Then I used the macbook brick with my Nexus 5x and the Nexus charges. So I think the problem might be software? I rebooted several times, I resetted the SMC and NVRAM but nothing changed. What am I supposed to do?