node.flashid() reports 1261768 for the 512 byte flash.
I have replaced the flash with a winbond 4Mbyte and node.flashid() reports 1458415
Issue
The undocumented node.flashsize() reports both flash chips as 524288 aka 512K.
Now flashsize() maybe broken and always report 512K regardless of the flash installed or
The nodeMCU firmware for autodetect has a lookup table that possibly can't correlate id 1458415 as being a 32mbit or 4mbyte flash.
The method used to autodetect the Flash installed is not documented. It may not be working.
There is a #define in config.h that would set flashsize to 4096k bytes
Anyone have an idea how to tell if flash is being fully utilized by the firmware.