This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

dfu-cc.proto output manually adjusted?

I was redefining the init packet and when it came time to generate the nano-pb files, it looks like there is a fair amount of difference in the newly auto generated pb.c and pb.h files. Since I ran into problems installing modules necessary to follow the process documented here, I regenerated the files using nano-pb as a protoc plug-in. I wanted to make sure there wasn't a command line flag I was missing that would generate the same output from the dfu-cc.proto file.

I guess the question is: are the dfu-cc.pb.c and .h files in the dfu example untouched after they were generated by nano-pb, or were they manually modified to fit Nordic code format standards?

e.g. #define DFU_FW_TYPE_MIN DFU_FW_TYPE_APPLICATION --- > #define _dfu_FwType_MIN dfu_FwType_APPLICATION

enums dfu_hash_type_t --- > dfu_HashType

Parents Reply Children
Related