Added calc type to USB product ID.

Fixed bug in CEIL.
This commit is contained in:
claudiol 2021-06-06 15:26:27 -04:00
parent d7272a5d93
commit 79f838bfc9
6 changed files with 37 additions and 2 deletions

View file

@ -13,6 +13,13 @@
#undef PREAMBLE_STRING
#define PREAMBLE_STRING "KINPOHP39G+IMAGE"
// Override the device string on the USB bus
#undef STR_PRODUCT
#define STR_PRODUCT {'n',0,'e',0,'w',0,'R',0,'P',0,'L',0,' ',0,'3',0,'9',0,'g',0,'s',0}
#undef STR_PRODLENGTH
#define STR_PRODLENGTH 22+2
#undef RAM_END_PHYSICAL
#define RAM_END_PHYSICAL 0x08040000

View file

@ -13,6 +13,13 @@
#undef PREAMBLE_STRING
#define PREAMBLE_STRING "KINPOHP40G+IMAGE"
// Override the device string on the USB bus
#undef STR_PRODUCT
#define STR_PRODUCT {'n',0,'e',0,'w',0,'R',0,'P',0,'L',0,' ',0,'4',0,'0',0,'g',0,'s',0}
#undef STR_PRODLENGTH
#define STR_PRODLENGTH 22+2
#undef RAM_END_PHYSICAL
#define RAM_END_PHYSICAL 0x08040000

View file

@ -13,6 +13,13 @@
#undef PREAMBLE_STRING
#define PREAMBLE_STRING "KINPOHP48GIIMAGE"
// Override the device string on the USB bus
#undef STR_PRODUCT
#define STR_PRODUCT {'n',0,'e',0,'w',0,'R',0,'P',0,'L',0,' ',0,'4',0,'8',0,'g',0,'2',0}
#undef STR_PRODLENGTH
#define STR_PRODLENGTH 22+2
#undef RAM_END_PHYSICAL
#define RAM_END_PHYSICAL 0x08040000

View file

@ -176,6 +176,16 @@
#define PREAMBLE_STRING "KINPOUPDATEIMAGE"
// Override the device string on the USB bus
#undef STR_PRODUCT
#define STR_PRODUCT {'n',0,'e',0,'w',0,'R',0,'P',0,'L',0,' ',0,'5',0,'0',0,'g',0}
#undef STR_PRODLENGTH
#define STR_PRODLENGTH 20+2
// Address of the serial number in this hardware
#define SERIAL_NUMBER_ADDRESS 0x3ff0

View file

@ -797,7 +797,11 @@
// Address of the serial number in this hardware
extern char SERIAL_NUMBER_ADDRESS[11];
// Override the device string on the USB bus
#undef STR_PRODUCT
#define STR_PRODUCT {'n',0,'e',0,'w',0,'R',0,'P',0,'L',0,' ',0,'P',0,'r',0,'G',0,'1',0}
#undef STR_PRODLENGTH
#define STR_PRODLENGTH 22+2

View file

@ -404,7 +404,7 @@ void LIB_HANDLER()
ipReal(&RReg[2], &rnum, 1);
if(!(rnum.flags & F_NEGATIVE)) {
RReg[2].data[0]++;
RReg[2].flags |= F_NEGATIVE;
normalize(&RReg[2]);
}